Update SrcHelper.js

assistant
jevons0411 2 years ago
parent 1fc7f67f09
commit 17f715f870
  1. 4
      SrcHelper.js

@ -2,12 +2,16 @@ function homepage(helper) {
var cloudVersion = 7.01;//插件版本号,判断是否需要更新
if (!fileExist('hiker://files/rules/Src/Auto/config.json')&&fileExist('hiker://files/cache/SrcSet.js')) {
try{
eval(fetch('hiker://files/cache/SrcSet.js').replace('userconfig','oldconfig'));
writeFile('hiker://files/rules/Src/Auto/config.json', JSON.stringify(oldconfig));
}catch(e){}
}
if (!fileExist('hiker://files/rules/Src/Auto/SrcSort.json')&&fileExist('hiker://files/cache/SrcSort.json')) {
try{
eval("var oldsort=" + fetch('hiker://files/cache/SrcSort.json'));
writeFile('hiker://files/rules/Src/Auto/SrcSort.json', JSON.stringify(oldsort));
}catch(e){}
}
var d = [];

Loading…
Cancel
Save