|
|
|
@ -333,7 +333,7 @@ function getOpenToken(authorization) { |
|
|
|
|
} |
|
|
|
|
variable = 1; |
|
|
|
|
} else { |
|
|
|
|
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=', { |
|
|
|
|
let json = JSON.parse(request('https://www.alipan.com/o/oauth/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: { |
|
|
|
|
"authorize": 1, |
|
|
|
@ -348,9 +348,9 @@ function getOpenToken(authorization) { |
|
|
|
|
} |
|
|
|
|
let json2 = {}; |
|
|
|
|
try { |
|
|
|
|
json2 = JSON.parse(request('https://api.xhofe.top/alist/ali_open/code', { body: data, method: 'POST', timeout: 8000 })); |
|
|
|
|
json2 = JSON.parse(request('https://api.xhofe.top/alist/ali_open/token', { body: data, method: 'POST', timeout: 8000 })); |
|
|
|
|
} catch (e) { |
|
|
|
|
json2 = JSON.parse(request('https://api-cf.nn.ci/alist/ali_open/code', { body: data, method: 'POST', timeout: 8000 })); |
|
|
|
|
json2 = JSON.parse(request('https://api-cf.nn.ci/alist/ali_open/token', { body: data, method: 'POST', timeout: 8000 })); |
|
|
|
|
} |
|
|
|
|
json2.variable = variable; |
|
|
|
|
return json2; |
|
|
|
|