diff --git a/SrcJyMenu.js b/SrcJyMenu.js index b6ccb9ed..1da69dc7 100644 --- a/SrcJyMenu.js +++ b/SrcJyMenu.js @@ -183,6 +183,22 @@ function lookset(){ }, JYconfig, cfgfile), col_type: "text_2" }); + d.push({ + title: (JYconfig['yundiskLine']==1?getide(1):getide(0))+'云盘搜索', + url: $('#noLoading#').lazyRule((JYconfig,cfgfile) => { + if(JYconfig['yundiskLine'] != 1){ + JYconfig['yundiskLine'] = 1; + putMyVar('yundiskLine','1'); + }else{ + JYconfig['yundiskLine'] = 0; + putMyVar('yundiskLine','0'); + } + writeFile(cfgfile, JSON.stringify(JYconfig)); + refreshPage(false); + return 'toast://'+JYconfig['alistLine']?'已开启云盘搜索线路':'已关闭云盘搜索线路'; + }, JYconfig, cfgfile), + col_type: "text_2" + }); d.push({ col_type: "line_blank" });