更新 'SrcJyAlist.js'

master
src48597962 2 years ago
parent 49ceb308cb
commit d034e51dba
  1. 38
      SrcJyAlist.js

@ -2,11 +2,11 @@
let alistfile = "hiker://files/rules/Src/Juying/Alist.json"; let alistfile = "hiker://files/rules/Src/Juying/Alist.json";
try{ try{
eval("var alistData=" + fetch(alistfile)); eval("var alistData=" + fetch(alistfile));
var datalist = alistData.drives; let jknum = alistData.drives.length;
}catch(e){ }catch(e){
var alistData = {}; var alistData = {};
} }
datalist = alistData.drives || [ let datalist = alistData.drives || [
{ {
"name": "云哲小站", "name": "云哲小站",
"server": "http://202.81.231.111:50526" "server": "http://202.81.231.111:50526"
@ -33,26 +33,46 @@ function alistSet() {
let alistfile = "hiker://files/rules/Src/Juying/Alist.json"; let alistfile = "hiker://files/rules/Src/Juying/Alist.json";
try{ try{
eval("var alistData=" + fetch(alistfile)); eval("var alistData=" + fetch(alistfile));
var datalist = alistData.drives; let jknum = alistData.drives.length;
}catch(e){ }catch(e){
var alistData= {}; var alistData= {};
} }
var d = []; var d = [];
d.push({ d.push({
title: '接口管理', title: '接口管理',
url: `#noLoading#@lazyRule=.js:putMyVar('guanli','jk');refreshPage(false);'toast://已切换到接口管理';`, url: `#noLoading#@lazyRule=.js:putMyVar('alistguanli','jk');refreshPage(false);'toast://已切换到接口管理';`,
img: "https://lanmeiguojiang.com/tubiao/movie/98.svg", img: "https://lanmeiguojiang.com/tubiao/movie/98.svg",
col_type: "icon_2" col_type: "icon_2"
}); });
d.push({ d.push({
title: '个性设置', title: '扩展设置',
url: $('hiker://empty#noRecordHistory##noHistory#').rule(() => { url: `#noLoading#@lazyRule=.js:putMyVar('alistguanli','set');refreshPage(false);'toast://已切换到扩展设置';`,
require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcJySet.js');
extension();
}),
img: "https://lanmeiguojiang.com/tubiao/ke/156.png", img: "https://lanmeiguojiang.com/tubiao/ke/156.png",
col_type: "icon_2" col_type: "icon_2"
}); });
if(getMyVar('alistguanli','jk')=="jk"){
d.push({
title: '增加',
url: "",
img: "https://lanmeiguojiang.com/tubiao/more/25.png",
col_type: "icon_small_3"
});
d.push({
title: '导入',
url: "",
img: "https://lanmeiguojiang.com/tubiao/more/43.png",
col_type: "icon_small_3"
});
d.push({
title: '分享',
url: "",
img: "https://lanmeiguojiang.com/tubiao/more/3.png",
col_type: "icon_small_3"
});
d.push({
col_type: "line"
});
}
setResult(d); setResult(d);
} }
function gethtml(api,path,password) { function gethtml(api,path,password) {

Loading…
Cancel
Save