|
|
@@ -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;
|
|
|
}
|
|
|
|