shawenguan vor 1 Jahr
Ursprung
Commit
cb334168ba
1 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen
  1. 8 7
      Scripts/telecom/cloud189Helper.js

+ 8 - 7
Scripts/telecom/cloud189Helper.js

@@ -717,9 +717,9 @@ async function getAppConf(reqId, lt, toUrl){
             "Content-Type": "application/x-www-form-urlencoded",
             'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1',
         };
-        // headers.reqId = reqId;
-        // headers.lt = lt;
-        // headers.referer = toUrl;
+        headers.reqId = reqId;
+        headers.lt = lt;
+        headers.referer = toUrl;
         let options = {
             url: 'https://open.e.189.cn/api/logbox/oauth2/appConf.do',
             headers: headers,
@@ -785,8 +785,8 @@ async function getCaptchaData(lt, toUrl){
             "Content-Type": "application/x-www-form-urlencoded",
             'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1',
         };
-        // headers.lt = lt;
-        // headers.referer = toUrl;
+        headers.lt = lt;
+        headers.referer = toUrl;
         let options = {
             url: 'https://open.e.189.cn/api/logbox/oauth2/needcaptcha.do',
             headers: headers,
@@ -812,12 +812,13 @@ async function getCaptchaData(lt, toUrl){
 async function scanLogin(){
     let sInitUrl = 'https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https://cloud.189.cn/web/redirect.html?returnURL=%2Fmain.action';
     let jumpUrl = await getLoginScanUrl(sInitUrl);
+    jumpUrl = await getLoginScanUrl(sInitUrl);
     if(jumpUrl){
         await getLoginScanJumpUrl(jumpUrl);
     }
-    await getAppConf();
+    // await getAppConf();
     await getEncryptConf();
-    await getCaptchaData();
+    // await getCaptchaData();
     return null;
 }