shawenguan 1 년 전
부모
커밋
3c5906cf61
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      Scripts/wubian/wubianSynthesis.js

+ 9 - 2
Scripts/wubian/wubianSynthesis.js

@@ -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;