shawenguan 2 anni fa
parent
commit
71c2653e5f
2 ha cambiato i file con 34 aggiunte e 2 eliminazioni
  1. 9 2
      Scripts/gandart/gandartHelper.js
  2. 25 0
      Scripts/gandart/gandartOrder.js

+ 9 - 2
Scripts/gandart/gandartHelper.js

@@ -103,7 +103,6 @@ function checkHanldeRequest() {
                 handleCollectionDetailsByCastingId();
                 break;
             case '/api/v2/composite/v3/list/v2':
-            case '/base/v2/composite/v3/list/v2':
                 handleCompositeTaskList();
                 break;
             default:
@@ -520,10 +519,18 @@ function handleCompositeTaskList() {
         }
         lk.log(`获取合成任务列表`);
         let ret = JSON.parse(data);
+        let status;
         if (ret.rows && ret.rows.length > 0) {
             let retTaskLst = ret.rows;
-            let status = retTaskLst[0].status;
+            status = retTaskLst[0].status;
             cacheCompositeTaskList(status, retTaskLst);
+        } else {
+            let reqBody = lk.getRequestBody();
+            if (reqBody) {
+                params = lk.parseQueryStr(reqBody);
+                status = params.status;
+                cacheCompositeTaskList(status, []);
+            }
         }
     } catch (e) {
         lk.logErr(e);

+ 25 - 0
Scripts/gandart/gandartOrder.js

@@ -343,6 +343,31 @@ function checkToBuyCollection(item) {
     });
 }
 
+async function getOrderEndTime(orderNum) {
+
+}
+
+async function transactionWalletList(orderNum) {
+
+}
+
+async function getMyWalletList() {
+
+}
+
+async function getPublickey() {
+
+}
+
+async function confirmPassword(accountPassword) {
+
+}
+
+async function pay(orderNum, castingId, transactionRecordId, userId) {
+
+}
+
+
 function getSign() {
     const now = new Date().getTime();
     let s1 = now - 20000;