From 361e5dab8ed4f3f965651e1a1a1b87a419fd2b38 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 22 Jul 2024 22:28:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyAliPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyAliPublic.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 = {};