From 381aba3666f8c15e5bb03f1506daaf2898970026 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 12 Apr 2023 14:25:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJu.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJu.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SrcJu.js b/SrcJu.js index 38ea6af0..0e2f6f16 100644 --- a/SrcJu.js +++ b/SrcJu.js @@ -792,7 +792,7 @@ function downloadicon() { } //版本检测 function Version() { - var nowVersion = "0.3";//现在版本 + var nowVersion = getItem('Version', "0.3");//现在版本 var nowtime = Date.now(); var oldtime = parseInt(getItem('VersionChecktime', '0').replace('time', '')); if (getMyVar('SrcJu-VersionCheck', '0') == '0' && nowtime > (oldtime + 12 * 60 * 60 * 1000)) { @@ -802,12 +802,13 @@ function Version() { confirm({ title: '发现新版本,是否更新?', content: nowVersion + '=>' + newVersion.SrcJu + '\n' + newVersion.SrcJudesc[newVersion.SrcJu], - confirm: $.toString((nowtime) => { + confirm: $.toString((nowtime,newVersion) => { + setItem('Version', newVersion); setItem('VersionChecktime', nowtime + 'time'); deleteCache(); delete config.依赖; refreshPage(); - }, nowtime), + }, nowtime, newVersion.SrcJu), cancel: '' }) log('检测到新版本!\nV' + newVersion.SrcJu + '版本》' + newVersion.SrcJudesc[newVersion.SrcJu]);