|
|
@ -11,14 +11,12 @@ function aliSharePlayUrl(share_id,file_id,alitoken,share_pwd){ |
|
|
|
} |
|
|
|
} |
|
|
|
share_pwd = share_pwd&&share_pwd.length==4?share_pwd:""; |
|
|
|
share_pwd = share_pwd&&share_pwd.length==4?share_pwd:""; |
|
|
|
let sharetoken = JSON.parse(request('https://api.aliyundrive.com/v2/share_link/get_share_token', { body: { "share_pwd": share_pwd, "share_id": share_id }, method: 'POST', timeout: 3000 })).share_token; |
|
|
|
let sharetoken = JSON.parse(request('https://api.aliyundrive.com/v2/share_link/get_share_token', { body: { "share_pwd": share_pwd, "share_id": share_id }, method: 'POST', timeout: 3000 })).share_token; |
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
|
|
let headers = { |
|
|
|
let headers = { |
|
|
|
'content-type': 'application/json;charset=UTF-8', |
|
|
|
'content-type': 'application/json;charset=UTF-8', |
|
|
|
"origin": "https://www.aliyundrive.com", |
|
|
|
"origin": "https://www.aliyundrive.com", |
|
|
|
"referer": "https://www.aliyundrive.com/", |
|
|
|
"referer": "https://www.aliyundrive.com/", |
|
|
|
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41", |
|
|
|
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41" |
|
|
|
"x-canary": "client=web,app=adrive,version=v3.1.0" |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
let nowtime = Date.now(); |
|
|
|
let nowtime = Date.now(); |
|
|
|
let oldtime = parseInt(getMyVar('userinfoChecktime','0').replace('time','')); |
|
|
|
let oldtime = parseInt(getMyVar('userinfoChecktime','0').replace('time','')); |
|
|
@ -31,7 +29,7 @@ function aliSharePlayUrl(share_id,file_id,alitoken,share_pwd){ |
|
|
|
storage0.putMyVar('aliuserinfo', userinfo); |
|
|
|
storage0.putMyVar('aliuserinfo', userinfo); |
|
|
|
putMyVar('userinfoChecktime', nowtime+'time'); |
|
|
|
putMyVar('userinfoChecktime', nowtime+'time'); |
|
|
|
} |
|
|
|
} |
|
|
|
*/ |
|
|
|
|
|
|
|
let authorization = 'Bearer ' + userinfo.access_token; |
|
|
|
let authorization = 'Bearer ' + userinfo.access_token; |
|
|
|
let deviceId = userinfo.device_id; |
|
|
|
let deviceId = userinfo.device_id; |
|
|
|
let userId = userinfo.user_id; |
|
|
|
let userId = userinfo.user_id; |
|
|
|