|
|
@ -1291,11 +1291,6 @@ function Version() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
eval(request(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcTmplVersion.js')) |
|
|
|
eval(request(config.依赖.match(/http(s)?:\/\/.*\//)[0].replace('/Ju/', '/master/') + 'SrcTmplVersion.js')) |
|
|
|
if (parseFloat(newVersion.SrcJu) > parseFloat(nowVersion)) { |
|
|
|
if (parseFloat(newVersion.SrcJu) > parseFloat(nowVersion)) { |
|
|
|
if(parseFloat(newVersion.SrcJu)==2.3){ |
|
|
|
|
|
|
|
let requirelist = [{ url: 'https://ghproxy.net/https://raw.githubusercontent.com/', sort: 0 }, { url: 'https://ghproxy.com/https://raw.githubusercontent.com/', sort: 0 }, { url: 'https://cdn.staticaly.com/gh/', sort: 0 }, { url: 'https://github.jevons.vip/https://raw.githubusercontent.com/', sort: 0 }] |
|
|
|
|
|
|
|
let requirefile = "hiker://files/rules/Src/require.json"; |
|
|
|
|
|
|
|
writeFile(requirefile, JSON.stringify(requirelist)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
confirm({ |
|
|
|
confirm({ |
|
|
|
title: '发现新版本,是否更新?', |
|
|
|
title: '发现新版本,是否更新?', |
|
|
|
content: nowVersion + '=>' + newVersion.SrcJu + '\n' + newVersion.SrcJudesc[newVersion.SrcJu], |
|
|
|
content: nowVersion + '=>' + newVersion.SrcJu + '\n' + newVersion.SrcJudesc[newVersion.SrcJu], |
|
|
|