shawenguan před 1 rokem
rodič
revize
4a12d32327

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 255 - 0
Scripts/hbcpre/hbcpreCompound.js


Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 314 - 0
Scripts/hbcpre/hbcpreDraw.js


+ 1 - 0
Scripts/hbcpre/hbcpreHelper.js

@@ -734,6 +734,7 @@ async function hbRequest(config, data) {
     });
     return result;
 }
+
 Main().catch((e) => magicJS.logger.log(`-\n ${e}`)).finally(() => magicJS.done());
 
 

+ 5 - 22
Scripts/hbcpre/hbcpreOrder.js

@@ -57,8 +57,6 @@ const gYeepayHeaders = {
     'Accept' : `application/json, text/plain, */*`
 };
 
-let gItemCntRwDict = {};
-
 async function Main() {
     if (!magicJS.isRequest) {
         await tryFastOrder();
@@ -67,22 +65,6 @@ async function Main() {
     magicJS.done();
 }
 
-function readItemCntRwDict(){
-    gItemCntRwDict = {};
-    let text = magicJS.data.read(HbcpreConstKey.itemCntRwData, null);
-    if(text){
-        let segments = text.split('|');
-        for (let i = segments.length - 1; i >= 0; i--) {
-            let kvArr = segments[i].trim().split('#');
-            if(kvArr.length == 2){
-                const key = kvArr[0].trim();
-                const value = parseInt(kvArr[1].trim());
-                gItemCntRwDict[key] = value;
-            }
-        }
-    }
-}
-
 async function tryFastOrder(){
     let itemId = magicJS.data.read(HbcpreConstKey.castingId, null);
     let itemName = magicJS.data.read(HbcpreConstKey.collectionName, null);
@@ -299,7 +281,7 @@ async function yeepayOrderInfo(token){
         return null;
     }
     if(result.bizStatus != 'success'){
-        magicJS.notification.appendNotifyInfo(`❌查询订单信息失败: ${result.errormsg || '未知原因'}`);
+        magicJS.notification.post(scriptName, '', `❌查询订单信息失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;
@@ -371,7 +353,7 @@ async function yeepaySupportBankList(token){
         return null;
     }
     if(result.bizStatus != 'success'){
-        magicJS.notification.appendNotifyInfo(`❌获取支持的银行列表数据失败: ${result.errormsg || '未知原因'}`);
+        magicJS.notification.appendNotifyInfo(scriptName, '', `❌获取支持的银行列表数据失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;
@@ -411,7 +393,7 @@ async function yeepayWalletPay(token, payType, bindId, tradePassword){
         return null;
     }
     if(result.bizStatus != 'success'){
-        magicJS.notification.appendNotifyInfo(`❌请求钱包支付失败: ${result.errormsg || '未知原因'}`);
+        magicJS.notification.post(scriptName, '', `❌请求钱包支付失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;
@@ -447,7 +429,7 @@ async function yeepayQueryResult(token){
         return null;
     }
     if(result.bizStatus != 'success'){
-        magicJS.notification.appendNotifyInfo(`❌获取订单支付结果数据失败: ${result.errormsg || '未知原因'}`);
+        magicJS.notification.post(`❌获取订单支付结果数据失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;
@@ -647,6 +629,7 @@ async function hbRequest(config, data) {
     });
     return result;
 }
+
 Main().catch((e) => magicJS.logger.log(`-\n ${e}`)).finally(() => magicJS.done());
 
 

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů