|
|
@ -168,34 +168,34 @@ function lookset(){ |
|
|
|
col_type: "text_2" |
|
|
|
col_type: "text_2" |
|
|
|
}); |
|
|
|
}); |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: (JYconfig['alistLine']==1?getide(1):getide(0))+'Alist搜索', |
|
|
|
title: (JYconfig['yundiskLine']==1?getide(1):getide(0))+'云盘搜索', |
|
|
|
url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { |
|
|
|
url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { |
|
|
|
if(JYconfig['alistLine'] != 1){ |
|
|
|
if(JYconfig['yundiskLine'] != 1){ |
|
|
|
JYconfig['alistLine'] = 1; |
|
|
|
JYconfig['yundiskLine'] = 1; |
|
|
|
putMyVar('alistLine','1'); |
|
|
|
putMyVar('yundiskLine','1'); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
JYconfig['alistLine'] = 0; |
|
|
|
JYconfig['yundiskLine'] = 0; |
|
|
|
putMyVar('alistLine','0'); |
|
|
|
putMyVar('yundiskLine','0'); |
|
|
|
} |
|
|
|
} |
|
|
|
writeFile(cfgfile, JSON.stringify(JYconfig)); |
|
|
|
writeFile(cfgfile, JSON.stringify(JYconfig)); |
|
|
|
refreshPage(false); |
|
|
|
refreshPage(false); |
|
|
|
return 'toast://'+JYconfig['alistLine']?'已开启Alist搜索线路':'已关闭Alist搜索线路'; |
|
|
|
return 'toast://'+JYconfig['alistLine']?'已开启云盘搜索线路':'已关闭云盘搜索线路'; |
|
|
|
}, JYconfig, cfgfile), |
|
|
|
}, JYconfig, cfgfile), |
|
|
|
col_type: "text_2" |
|
|
|
col_type: "text_2" |
|
|
|
}); |
|
|
|
}); |
|
|
|
d.push({ |
|
|
|
d.push({ |
|
|
|
title: (JYconfig['yundiskLine']==1?getide(1):getide(0))+'云盘搜索', |
|
|
|
title: (JYconfig['alistLine']==1?getide(1):getide(0))+'Alist搜索', |
|
|
|
url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { |
|
|
|
url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { |
|
|
|
if(JYconfig['yundiskLine'] != 1){ |
|
|
|
if(JYconfig['alistLine'] != 1){ |
|
|
|
JYconfig['yundiskLine'] = 1; |
|
|
|
JYconfig['alistLine'] = 1; |
|
|
|
putMyVar('yundiskLine','1'); |
|
|
|
putMyVar('alistLine','1'); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
JYconfig['yundiskLine'] = 0; |
|
|
|
JYconfig['alistLine'] = 0; |
|
|
|
putMyVar('yundiskLine','0'); |
|
|
|
putMyVar('alistLine','0'); |
|
|
|
} |
|
|
|
} |
|
|
|
writeFile(cfgfile, JSON.stringify(JYconfig)); |
|
|
|
writeFile(cfgfile, JSON.stringify(JYconfig)); |
|
|
|
refreshPage(false); |
|
|
|
refreshPage(false); |
|
|
|
return 'toast://'+JYconfig['alistLine']?'已开启云盘搜索线路':'已关闭云盘搜索线路'; |
|
|
|
return 'toast://'+JYconfig['alistLine']?'已开启Alist搜索线路':'已关闭Alist搜索线路'; |
|
|
|
}, JYconfig, cfgfile), |
|
|
|
}, JYconfig, cfgfile), |
|
|
|
col_type: "text_2" |
|
|
|
col_type: "text_2" |
|
|
|
}); |
|
|
|
}); |
|
|
|