|
|
@ -53,6 +53,15 @@ function selectsource(input) { |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
toast("软件版本过低,可能存在异常"); |
|
|
|
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 + "更新"); |
|
|
|
clearMyVar(MY_RULE.title + "更新"); |
|
|
|
clearMyVar(MY_RULE.title + "类别"); |
|
|
|
clearMyVar(MY_RULE.title + "类别"); |
|
|
@ -64,6 +73,7 @@ function selectsource(input) { |
|
|
|
clearMyVar("更新"); |
|
|
|
clearMyVar("更新"); |
|
|
|
clearMyVar(runMode+"_"+sourcename); |
|
|
|
clearMyVar(runMode+"_"+sourcename); |
|
|
|
clearMyVar("一级源接口信息"); |
|
|
|
clearMyVar("一级源接口信息"); |
|
|
|
|
|
|
|
} |
|
|
|
Juconfig["runMode"] = runMode; |
|
|
|
Juconfig["runMode"] = runMode; |
|
|
|
Juconfig[runMode+'sourcename'] = input; |
|
|
|
Juconfig[runMode+'sourcename'] = input; |
|
|
|
writeFile(cfgfile, JSON.stringify(Juconfig)); |
|
|
|
writeFile(cfgfile, JSON.stringify(Juconfig)); |
|
|
|