|
|
|
@ -259,11 +259,15 @@ function aliOpenPlayUrl(file_id,sharedata) { |
|
|
|
|
let code = json.redirectUri.split("code=")[1]; |
|
|
|
|
let data2 = {"code":code,"grant_type":"authorization_code"} |
|
|
|
|
let json2; |
|
|
|
|
log(data2); |
|
|
|
|
json2 = JSON.parse(request('https://aliyundrive-oauth.messense.me/oauth/access_token', { body: data2, method: 'POST', timeout: 8000 })); |
|
|
|
|
/* |
|
|
|
|
try{ |
|
|
|
|
json2 = JSON.parse(request('https://api-cf.nn.ci/alist/ali_open/code', { body: data2, method: 'POST', timeout: 8000 })); |
|
|
|
|
} catch(e) { |
|
|
|
|
json2 = JSON.parse(request('https://api.xhofe.top/alist/ali_open/code', { body: data2, method: 'POST', timeout: 8000 })); |
|
|
|
|
} |
|
|
|
|
*/ |
|
|
|
|
return json2.access_token || ""; |
|
|
|
|
} |
|
|
|
|
function fcopy(obj) { |
|
|
|
|