shawenguan 1 gadu atpakaļ
vecāks
revīzija
6b617282fa
1 mainītis faili ar 6 papildinājumiem un 3 dzēšanām
  1. 6 3
      Scripts/hbcpre/hbcpreOrder.js

+ 6 - 3
Scripts/hbcpre/hbcpreOrder.js

@@ -540,7 +540,8 @@ async function yeepayOrderInfo(token) {
         return null;
     }
     if (result.bizStatus != 'success') {
-        magicJS.notification.post(scriptName, '', `❌查询订单信息失败: ${result.errormsg || '未知原因'}`);
+        magicJS.logger.error(`查询订单信息失败: ${result.errormsg || '未知原因'}`);
+        // magicJS.notification.post(scriptName, '', `❌查询订单信息失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;
@@ -652,7 +653,8 @@ async function yeepayWalletPay(token, payType, bindId, tradePassword) {
         return null;
     }
     if (result.bizStatus != 'success') {
-        magicJS.notification.post(scriptName, '', `❌请求钱包支付失败: ${result.errormsg || '未知原因'}`);
+        magicJS.logger.error(`请求钱包支付失败: ${result.errormsg || '未知原因'}`);
+        // magicJS.notification.post(scriptName, '', `❌请求钱包支付失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;
@@ -688,7 +690,8 @@ async function yeepayQueryResult(token) {
         return null;
     }
     if (result.bizStatus != 'success') {
-        magicJS.notification.post(`❌获取订单支付结果数据失败: ${result.errormsg || '未知原因'}`);
+        magicJS.logger.error(`获取订单支付结果数据失败: ${result.errormsg || '未知原因'}`);
+        // magicJS.notification.post(`❌获取订单支付结果数据失败: ${result.errormsg || '未知原因'}`);
         return null;
     }
     result.data.token = result.token;