|
|
|
@ -386,15 +386,12 @@ function getOpenToken(authorization) { |
|
|
|
|
method: 'POST', |
|
|
|
|
timeout: 8000 |
|
|
|
|
})).data.sid; |
|
|
|
|
log(sid); |
|
|
|
|
//log(sid);
|
|
|
|
|
let json = JSON.parse(request('https://open.aliyundrive.com/oauth/users/qrcode/authorize?sid=' + sid, { |
|
|
|
|
headers: headers, |
|
|
|
|
body: { |
|
|
|
|
"authorize": 1, |
|
|
|
|
"scope": "user:base,file:all:read,file:all:write", |
|
|
|
|
"drives": ["backup", "resource"], |
|
|
|
|
"scopes": ["user:base", "file:all:read", "file:all:write"], |
|
|
|
|
"sid": sid |
|
|
|
|
"scopes": ["user:base", "file:all:read", "file:all:write"] |
|
|
|
|
}, |
|
|
|
|
method: 'POST', |
|
|
|
|
timeout: 8000 |
|
|
|
|