shawenguan 2 years ago
parent
commit
b9c91f8cfa
2 changed files with 87 additions and 9 deletions
  1. 9 3
      Scripts/gandart/gandartComposite.js
  2. 78 6
      Scripts/gandart/gandartPay.js

+ 9 - 3
Scripts/gandart/gandartComposite.js

@@ -296,6 +296,10 @@ async function checkGetMaterialDetails(gUsedMaterialDetails, materialDict) {
     return gUsedMaterialDetails;
 }
 
+function calcBatComposite() {
+
+}
+
 async function tryToExecCompositeTask(taskId, taskInfo = {}) {
     if (getCompositeTaskMode() == 1) {
         lk.log('开始极速模式执行合成任务');
@@ -455,7 +459,9 @@ function refreshMaterialAfterComposite(usedGroups) {
                 lk.logErr(error);
             }
             for (let group of usedGroups) {
-                deleteMaterial(group.castingId, group.orderList);
+                for (let one of group) {
+                    deleteUsedMaterial(one.castingId, one.orderList);
+                }
             }
             jsonStr = JSON.stringify(gAllMaterialDetails, null, 2);
             lk.setVal(GandartConstKey.PrivCollectionDetail, jsonStr);
@@ -463,7 +469,7 @@ function refreshMaterialAfterComposite(usedGroups) {
     }
 }
 
-function deleteMaterial(castingId, recordIdLst) {
+function deleteUsedMaterial(castingId, recordIdLst) {
     let itemLst = gAllMaterialDetails[castingId];
     if (itemLst) {
         let remainLst = [];
@@ -801,7 +807,7 @@ async function getDetailByCasting(castingId, collectionName, pageSize = 50, page
                         if (ret.success) {
                             let obj = ret.obj;
                             retItemLst = obj.list;
-                            lk.log(`获取个人产品拥有详情成功`);
+                            lk.log(`获取个人产品拥有详情成功,响应:${data}`);
                         } else {
                             lk.log(`获取个人产品拥有详情失败,响应:${data}`);
                         }

File diff suppressed because it is too large
+ 78 - 6
Scripts/gandart/gandartPay.js


Some files were not shown because too many files changed in this diff