From 07ecaddc479cca88585f7a2b3eb7544f7efb2804 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E8=B0=B7=E5=89=91=E4=BB=99?= Date: Fri, 12 Jun 2020 18:34:52 +0800 Subject: [PATCH] =?UTF-8?q?=E9=81=BF=E5=85=8Dckey=E8=A2=AB=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 24a0279c..2b211dc1 100644 --- a/script.js +++ b/script.js @@ -405,7 +405,7 @@ window.onload = function() statusLine.classList.add("loading-check-version"); GM_xmlhttpRequest({ method: "GET", - url: `${sourceDataFolder}/ckey.json`, //版本文件 + url: `${sourceDataFolder}/ckey.json?t=` + new Date().getTime(), //版本文件 onload: function(response) { dealCkeyData(response.response); }, @@ -474,7 +474,7 @@ window.onload = function() { GM_xmlhttpRequest({ method: "GET", - url:`${sourceDataFolder}/mon_${currentDataSource.code}.json`, //Cards数据文件 + url:`${sourceDataFolder}/mon_${currentDataSource.code}.json?t=` + new Date().getTime(), //Cards数据文件 onload: function(response) { console.log("Cards ckey变化,储存新数据",currentCkey.ckey.card); localforage.setItem(`PADDF-${currentDataSource.code}-cards`, JSON.parse(response.response)).then(function(){ @@ -536,7 +536,7 @@ window.onload = function() { GM_xmlhttpRequest({ method: "GET", - url:`${sourceDataFolder}/skill_${currentDataSource.code}.json`, //Skills数据文件 + url:`${sourceDataFolder}/skill_${currentDataSource.code}.json?t=` + new Date().getTime(), //Skills数据文件 onload: function(response) { console.log("Skills ckey变化,储存新数据",currentCkey.ckey.skill); localforage.setItem(`PADDF-${currentDataSource.code}-skills`, JSON.parse(response.response)).then(function(){