shawenguan il y a 1 an
Parent
commit
bd93e0161d
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      Scripts/unicom/unicomSignIn.js

+ 8 - 0
Scripts/unicom/unicomSignIn.js

@@ -296,6 +296,14 @@ async function queryUserInfoSeven(phoneNum = '16620077714') {
     };
     let cookieStr = magicJS.data.read(UnicomConstKey.Cookie, null);
     let cachCookieDict = magicJS.parseCookies(cookieStr);
+    let keys = ['acw_tc', 'a_token', 'ecs_token', 'enc_acc', 'jwt', 't3_token', 'third_token'];
+    keys = ['jwt'];
+    for (let i = 0; i < keys.length; i++) {
+        const key = keys[i];
+        if (cachCookieDict[key]) {
+            curCookieDict[key] = cachCookieDict[key];
+        }
+    }
 
     const url = `https://m.client.10010.com//mobileserviceimportant/home/queryUserInfoSeven?${magicJS.objToQueryStr(reqData)}`;
     const headers = {