diff --git a/SrcJyAliPublic.js b/SrcJyAliPublic.js index e90a729..2884f8b 100644 --- a/SrcJyAliPublic.js +++ b/SrcJyAliPublic.js @@ -254,7 +254,8 @@ function aliOpenPlayUrl(file_id,sharedata) { function getopentoken(authorization) { headers['authorization'] = authorization; headers['x-canary'] = "client=web,app=adrive,version=v4.3.1"; - let data = {"authorize":1,"scope":"user:base,file:all:read,file:all:write"} + log(headers); + let data = {"authorize":1,"scope":"user:base,file:all:read,file:all:write"}; let json = JSON.parse(request('https://open.aliyundrive.com/oauth/users/authorize?client_id=76917ccccd4441c39457a04f6084fb2f&redirect_uri=https://alist.nn.ci/tool/aliyundrive/callback&scope=user:base,file:all:read,file:all:write&state=', { headers: headers, body: data, method: 'POST', timeout: 8000 })); let code = json.redirectUri.split("code=")[1]; let data2 = {"code":code,"grant_type":"authorization_code"}