更新 'SrcJuPublic.js'

Ju
src48597962 2 years ago
parent 4bdc9dc9e8
commit c37d842d03
  1. 10
      SrcJuPublic.js

@ -53,6 +53,15 @@ function selectsource(input) {
}else{
toast("软件版本过低,可能存在异常");
}
try{
let listMyVar = listMyVarKeys();
listMyVar.fetch(it=>{
if(!/^SrcJu_/.test(it)){
log(it);
clearMyVar(it);
}
})
}catch(e){
clearMyVar(MY_RULE.title + "分类");
clearMyVar(MY_RULE.title + "更新");
clearMyVar(MY_RULE.title + "类别");
@ -64,6 +73,7 @@ function selectsource(input) {
clearMyVar("更新");
clearMyVar(runMode+"_"+sourcename);
clearMyVar("一级源接口信息");
}
Juconfig["runMode"] = runMode;
Juconfig[runMode+'sourcename'] = input;
writeFile(cfgfile, JSON.stringify(Juconfig));

Loading…
Cancel
Save