|
|
@ -230,9 +230,12 @@ function aliMyPlayUrl(file_id, drive_id) { |
|
|
|
} |
|
|
|
} |
|
|
|
let file_url = aliOpenPlayUrl(file_id, undefined, drive_id); |
|
|
|
let file_url = aliOpenPlayUrl(file_id, undefined, drive_id); |
|
|
|
if (file_url) { |
|
|
|
if (file_url) { |
|
|
|
let opentoken = getOpenToken(authorization); |
|
|
|
if(getItem('yundisk_updateRecord')=="1"){ |
|
|
|
headers['authorization'] = 'Bearer ' + opentoken; |
|
|
|
let opentoken = getOpenToken(authorization); |
|
|
|
fetch('https://openapi.aliyundrive.com/adrive/v1.0/openFile/video/updateRecord',{headers: headers, body: {"duration":"0","drive_id":drive_id,"file_id":file_id,"play_cursor":"0"}, method: 'POST'}) |
|
|
|
headers['authorization'] = 'Bearer ' + opentoken; |
|
|
|
|
|
|
|
fetch('https://openapi.aliyundrive.com/adrive/v1.0/openFile/video/updateRecord',{headers: headers, body: {"duration":"0","drive_id":drive_id,"file_id":file_id,"play_cursor":"0"}, method: 'POST'}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
urls.unshift(file_url + "#isVideo=true##pre#"); |
|
|
|
urls.unshift(file_url + "#isVideo=true##pre#"); |
|
|
|
names.unshift("原始 画质"); |
|
|
|
names.unshift("原始 画质"); |
|
|
|
heads.unshift({ 'Referer': 'https://www.aliyundrive.com/' }); |
|
|
|
heads.unshift({ 'Referer': 'https://www.aliyundrive.com/' }); |
|
|
|