shawenguan 1 год назад
Родитель
Сommit
6ffc68e3a3
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      Scripts/cmobile/cmpaySignIn.js

+ 6 - 0
Scripts/cmobile/cmpaySignIn.js

@@ -299,12 +299,18 @@ async function trySignIn() {
     let scene = magicJS.data.read(CmpayConstKey.Scene, ssoToken.length > 0 ? 1 : 2);
 
     let isClient = (scene == 1 ? '0' : '1');
+    let SORCNL = 4505;
+    let MERCSIGN = 'nXpkTSMXNH7PWda7knEtF7whPYQpe6SW';
+    let appNo = 'pE1sxlkVYjgh4oCA';
+    let appSchemeUrl = 'cmpay412hb://hebao/awake?SORCNL=' + SORCNL + '&MERCSIGN=' + MERCSIGN + '-' + appNo;
 
     let retLogin = await takeNumberLogin(scene, ssoToken);
     if (!retLogin || retLogin.msgCd.substring(3, 8) != '00000') {
+        magicJS.notification.post(scriptName, "", `❌请先登录获取最新Cookie!!!`, appSchemeUrl);
         return;
     }
     if (retLogin.body && !retLogin.body.loginFlag) {
+        magicJS.notification.post(scriptName, "", `❌请先登录获取最新Cookie!!!`, appSchemeUrl);
         return;
     }
     let retIndexData = await queryIndex(isClient);