|
|
|
@ -82,7 +82,8 @@ function getAliUrl(share_id, file_id, share_pwd) { |
|
|
|
|
let aliurl; |
|
|
|
|
playUrlList.forEach((item) => { |
|
|
|
|
if(item.template_id == line){ |
|
|
|
|
aliurl = JSON.parse(request(item.url, { headers: { 'Referer': 'https://www.aliyundrive.com/' }, onlyHeaders: true, redirect: false, timeout: 3000 })).headers.location[0]; |
|
|
|
|
aliurl = item.url; |
|
|
|
|
//JSON.parse(request(item.url, { headers: { 'Referer': 'https://www.aliyundrive.com/' }, onlyHeaders: true, redirect: false, timeout: 3000 })).headers.location[0];
|
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
//上面是获取阿里的播放地址
|
|
|
|
@ -146,7 +147,6 @@ function getAliUrl(share_id, file_id, share_pwd) { |
|
|
|
|
return ff; |
|
|
|
|
} |
|
|
|
|
},share_id,file_id,share_pwd,config)); |
|
|
|
|
|
|
|
|
|
let playUrlList = aliSharePlayUrl(share_id,file_id,share_pwd) || []; |
|
|
|
|
if(playUrlList.length>0){ |
|
|
|
|
playUrlList.forEach((item) => { |
|
|
|
|