diff --git a/SrcJyAliPublic.js b/SrcJyAliPublic.js index fa1e003..8b0ae3c 100644 --- a/SrcJyAliPublic.js +++ b/SrcJyAliPublic.js @@ -386,7 +386,7 @@ function getOpenToken(authorization) { method: 'POST', timeout: 8000 })).data.sid; - + log(sid); let json = JSON.parse(request('https://open.aliyundrive.com/oauth/users/qrcode/authorize?sid=' + sid, { headers: headers, body: { @@ -396,10 +396,12 @@ function getOpenToken(authorization) { method: 'POST', timeout: 8000 })); + log(json); if(json.result){ let code = JSON.parse(request("https://openapi.aliyundrive.com/oauth/qrcode/" + sid + "/status")).authCode; data = { "code": code, "grant_type": "authorization_code" } } + log(data); variable = 0; } let json2 = {};