|
|
@@ -239,9 +239,9 @@ async function trySynthesize() {
|
|
|
let retData = await doCreateConvertOrder(activityId, goodsList);
|
|
|
let errMsg = '';
|
|
|
if (retData && retData.code == 200) {
|
|
|
- errMsg = `序号[${+1}]兑换成功`;
|
|
|
+ errMsg = `序号[${+1}]使用材料[${getCombinationGoodsLstText(goodsList)}]兑换成功`;
|
|
|
} else {
|
|
|
- errMsg = `序号[${i + 1}]${retData?.msg || '兑换失败'}`;
|
|
|
+ errMsg = `序号[${i + 1}]使用材料[${getCombinationGoodsLstText(goodsList)}]${retData?.msg || '兑换失败'}`;
|
|
|
}
|
|
|
tipsText += `${errMsg}\n`;
|
|
|
}
|
|
|
@@ -255,6 +255,13 @@ function getCombinationGoodsList(combination) {
|
|
|
}
|
|
|
return retList;
|
|
|
}
|
|
|
+function getCombinationGoodsLstText(combination) {
|
|
|
+ let text = '';
|
|
|
+ for (let item of combination) {
|
|
|
+ text += `#${item.ver},`;
|
|
|
+ }
|
|
|
+ return text.substring(0, text.length - 1);
|
|
|
+}
|
|
|
|
|
|
function getSynthesizeCombination(retCvtData) {
|
|
|
let goodsList = retCvtData.goodsList;
|