|
|
@ -201,12 +201,12 @@ function getSubtitle(share_id, sub_file_id, share_pwd) { |
|
|
|
return ""; |
|
|
|
return ""; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function aliMyPlayUrl(file_id, driveid) { |
|
|
|
function aliMyPlayUrl(file_id, drive_id) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
drive_id = drive_id || alidrive_id; |
|
|
|
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; |
|
|
|
let drive_id = driveid?driveid:getMyVar("selectDisk", "1") == "1" ? userinfo.default_drive_id : userinfo.resource_drive_id || userinfo.default_drive_id; |
|
|
|
|
|
|
|
headers['authorization'] = authorization; |
|
|
|
headers['authorization'] = authorization; |
|
|
|
headers['x-device-id'] = deviceId; |
|
|
|
headers['x-device-id'] = deviceId; |
|
|
|
let aliecc = createsession(headers, deviceId, userId); |
|
|
|
let aliecc = createsession(headers, deviceId, userId); |
|
|
@ -249,10 +249,10 @@ function aliMyPlayUrl(file_id, driveid) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function aliOpenPlayUrl(file_id, sharedata, driveid) { |
|
|
|
function aliOpenPlayUrl(file_id, sharedata, drive_id) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
let nowtime = Date.now(); |
|
|
|
let nowtime = Date.now(); |
|
|
|
|
|
|
|
drive_id = drive_id || alidrive_id; |
|
|
|
function getOpenToken(authorization) { |
|
|
|
function getOpenToken(authorization) { |
|
|
|
headers['authorization'] = authorization; |
|
|
|
headers['authorization'] = authorization; |
|
|
|
headers['x-canary'] = "client=web,app=adrive,version=v4.3.1"; |
|
|
|
headers['x-canary'] = "client=web,app=adrive,version=v4.3.1"; |
|
|
@ -390,7 +390,6 @@ function aliOpenPlayUrl(file_id, sharedata, driveid) { |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
let authorization = 'Bearer ' + userinfo.access_token; |
|
|
|
let authorization = 'Bearer ' + userinfo.access_token; |
|
|
|
let drive_id = driveid?driveid:getMyVar("selectDisk", "1") == "1" ? userinfo.default_drive_id : userinfo.resource_drive_id || userinfo.default_drive_id; |
|
|
|
|
|
|
|
let newfile_id; |
|
|
|
let newfile_id; |
|
|
|
if (sharedata) { |
|
|
|
if (sharedata) { |
|
|
|
sharedata.file_id = file_id; |
|
|
|
sharedata.file_id = file_id; |
|
|
|