更新 'SrcJyAliDisk.js'

master
src48597962 7 months ago
parent 00285a10d2
commit c8c1af3777
  1. 10
      SrcJyAliDisk.js

@ -138,14 +138,14 @@ function aliShare(share_id, folder_id, share_pwd) {
img: getIcon("云盘-排序.svg"), img: getIcon("云盘-排序.svg"),
}, },
{ {
title: getItem('aliyun_playMode', '智能')=="原画"?"原画"+getItem('aliyun_openInt', '1'):getItem('aliyun_playMode', '智能'), title: getItem('aliyun_playMode')=="原画"?"原画"+getItem('aliyun_openInt', '1'):getItem('aliyun_playMode', '智能'),
url: $(['智能', '转码', '原画', '原画接口']).select(() => { url: $(['智能', '转码', '原画', '原画接口']).select(() => {
if(input=='原画接口'){ if(input=='原画接口'){
return $(['接口1(alist)', '接口2(webdav)']).select(() => { return $(['接口1(alist)', '接口2(webdav)', '接口3(tv)']).select(() => {
clearMyVar('aliopentoken'); clearMyVar('aliopentoken');
if(input=='接口1(alist)'){ if(input=='接口1(alist)'){
clearItem('aliyun_openInt'); setItem('aliyun_openInt', '1');
}else{ }else if(input=='接口2(webdav)'){
require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcJyAliPublic.js'); require(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcJyAliPublic.js');
if(aliOpenTokenObj.refresh_token_2){ if(aliOpenTokenObj.refresh_token_2){
setItem('aliyun_openInt', '2'); setItem('aliyun_openInt', '2');
@ -177,6 +177,8 @@ function aliShare(share_id, folder_id, share_pwd) {
} }
} }
}else if(input=='接口3(tv)'){
setItem('aliyun_openInt', '3');
} }
refreshPage(); refreshPage();
return 'toast://已切换为'+input; return 'toast://已切换为'+input;

Loading…
Cancel
Save