diff --git a/SrcHelper.js b/SrcHelper.js index e5105b67..888e185d 100644 --- a/SrcHelper.js +++ b/SrcHelper.js @@ -1,6 +1,15 @@ function homepage(helper) { var cloudVersion = 7.01;//插件版本号,判断是否需要更新 + if (!fileExist('hiker://files/rules/Src/Auto/config.json')&&fileExist('hiker://files/cache/SrcSet.js')) { + eval(fetch('hiker://files/cache/SrcSet.js').replace('userconfig','oldconfig')); + writeFile('hiker://files/rules/Src/Auto/config.json', JSON.stringify(oldconfig)); + } + if (!fileExist('hiker://files/rules/Src/Auto/SrcSort.json')&&fileExist('hiker://files/cache/SrcSort.json')) { + eval("var oldsort=" + fetch('hiker://files/cache/SrcSort.json')); + writeFile('hiker://files/rules/Src/Auto/SrcSort.json', JSON.stringify(oldsort)); + } + var d = []; //判断是否有断插小程序 var Dnzt = 0;