shawenguan 1 år sedan
förälder
incheckning
1225467bcb
1 ändrade filer med 5 tillägg och 4 borttagningar
  1. 5 4
      Scripts/unicom/unicomHelper.js

+ 5 - 4
Scripts/unicom/unicomHelper.js

@@ -174,14 +174,14 @@ function updateHeaders() {
 function compareCookieStr(cookieStr1, cookieStr2) {
     let cookieDict1 = magicJS.parseCookies(cookieStr1);
     let cookieDict2 = magicJS.parseCookies(cookieStr2);
-    let skipKeys = ['JSESSIONID', 'PvSessionId', 'ecs_acc'];
+    let skipKeys = ['JSESSIONID', 'PvSessionId', 'a_token', 'ecs_acc', , 'ecs_token', 'c_id', 't3_token', 'third_token',/* 'jwt', 'invalid_at' */];
     let retCode = 0;
     for (let key in cookieDict1) {
         if (!skipKeys.includes(key)) {
             if (cookieDict1[key] != void 0 && cookieDict2[key] != void 0 && cookieDict1[key] != cookieDict2[key]) {
                 magicJS.logger.info(`${key}`);
                 retCode = -1;
-                // break;
+                break;
             }
         }
     }
@@ -380,15 +380,16 @@ function handleFlowManagement() {
     if (!rspData) {
         return;
     }
+    // 修改倒计时
     let outputString = rspData;
     if (outputString.indexOf('timeType:"AM"') != -1) {
         let regex = /\(\{timeNum:-?\d+,timeType:"AM"\}\)/g;
-        let newValue = '({timeNum:0,timeType:"AM"})';
+        let newValue = '({timeNum:-1,timeType:"AM"})';
         outputString = outputString.replace(regex, newValue);
         gRetBody = outputString;
     } else if (outputString.indexOf('timeType:"PM"') != -1) {
         let regex = /\(\{timeNum:-?\d+,timeType:"PM"\}\)/g;
-        let newValue = '({timeNum:0,timeType:"PM"})';
+        let newValue = '({timeNum:-1,timeType:"PM"})';
         outputString = outputString.replace(regex, newValue);
         gRetBody = outputString;
     }