From 30bd96c018e3bbd9e860ede39707f3a3c8caf1c5 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 31 Jul 2024 10:08:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuying.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuying.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/SrcJuying.js b/SrcJuying.js index 90b9be37..7b412df4 100644 --- a/SrcJuying.js +++ b/SrcJuying.js @@ -1355,13 +1355,16 @@ function Version() { if (parseFloat(newVersion.SrcJuying) > parseFloat(nowVersion)) { confirm({ title:'发现新版本,是否更新?', - content:'本地V'+nowVersion+' => 云端V'+newVersion.SrcJuying + '\n可在管理中查询更新日志', - confirm: $.toString((nowtime,newVersion) => { - setItem('Version', newVersion); + content:'本地V'+nowVersion+' => 云端V'+newVersion.SrcJuying + '\n' + (newVersion.hint||""), + confirm: $.toString((nowtime,version,updateRecords) => { + setItem('Version', version); setItem('VersionChecktime', nowtime+'time'); deleteCache(); refreshPage(); - },nowtime, newVersion.SrcJuying), + + const hikerPop = $.require("http://hiker.nokia.press/hikerule/rulelist.json?id=6966"); + hikerPop.updateRecordsBottom(updateRecords); + },nowtime, newVersion.SrcJuying, newVersion.JYUpdateRecords.slice(0, 3)), cancel:'' }) log('检测到新版本!\nV'+newVersion.SrcJuying+'版本》'+newVersion.SrcJuyingdesc[newVersion.SrcJuying]);