|
|
|
@ -249,6 +249,7 @@ function aliMyPlayUrl(file_id) { |
|
|
|
|
return { message: '获取我的云盘播放地址失败>' + e.message }; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function aliOpenPlayUrl(file_id,sharedata) { |
|
|
|
|
try { |
|
|
|
|
function getopentoken(authorization) { |
|
|
|
@ -345,6 +346,7 @@ function aliOpenPlayUrl(file_id,sharedata) { |
|
|
|
|
let data3 = {"drive_id":drive_id,"file_id":newfile_id||file_id} |
|
|
|
|
let json3 = JSON.parse(request('https://open.aliyundrive.com/adrive/v1.0/openFile/getDownloadUrl', { headers: headers, body: data3, method: 'POST', timeout: 3000 })); |
|
|
|
|
if (newfile_id) { |
|
|
|
|
sharedata.file_id = newfile_id; |
|
|
|
|
del(sharedata); |
|
|
|
|
} |
|
|
|
|
return json3.url || ""; |
|
|
|
|