diff --git a/RwTicketAssistantV3/app/air/popup.html b/RwTicketAssistantV3/app/air/popup.html index 7776add..8276f97 100644 --- a/RwTicketAssistantV3/app/air/popup.html +++ b/RwTicketAssistantV3/app/air/popup.html @@ -43,7 +43,7 @@
- + + @@ -79,4 +79,4 @@ - \ No newline at end of file + diff --git a/RwTicketAssistantV3/app/background.js b/RwTicketAssistantV3/app/background.js index 3aef8e5..5dee381 100644 --- a/RwTicketAssistantV3/app/background.js +++ b/RwTicketAssistantV3/app/background.js @@ -19,7 +19,6 @@ var log = (function () { return new fun(); })(); - function compressFunc() { return false; } @@ -248,31 +247,31 @@ var CFG_MANGER = (function () { this.refresh(); //定时刷新请求 - this.refresh = function () { - if (timerId) { - clearTimeout(timerId); - timerId = null; - } - if (entry12306 || !loaded) { - lastUpdate = new Date(); - $.getJSON("http://storage.fishlee.net/soft/files/44/rwticketconfig.json?" + Math.random(), function (data) { - if (typeof (data.enableAutoCaptcha) === 'undefined' || data.enableAutoCaptcha) - data.enableAutoCaptcha = data.enableAutoCaptcha && typeof window.external.LieBaoSign === 'function'; + //this.refreshConfig = function () { + // if (timerId) { + // clearTimeout(timerId); + // timerId = null; + // } + // if (entry12306 || !loaded) { + // lastUpdate = new Date(); + // $.getJSON("http://storage.fishlee.net/soft/files/44/rwticketconfig.json?" + Math.random(), function (data) { + // if (typeof (data.enableAutoCaptcha) === 'undefined' || data.enableAutoCaptcha) + // data.enableAutoCaptcha = data.enableAutoCaptcha && typeof window.external.LieBaoSign === 'function'; - localStorage["sysConfig"] = JSON.stringify(data); - __.sysConfig = data; - __.config = $.extend({}, __.baseConfig, __.userConfig, __.sysConfig); - chrome.runtime.sendMessage({ action: "sysConfigUpdate", detail: __.config }); - }); - } + // localStorage["sysConfig"] = JSON.stringify(data); + // __.sysConfig = data; + // __.config = $.extend({}, __.baseConfig, __.userConfig, __.sysConfig); + // chrome.runtime.sendMessage({ action: "sysConfigUpdate", detail: __.config }); + // }); + // } - var m = new Date().getMinutes(); - if (m >= 50 || m <= 15) { - timerId = setTimeout(__.refresh, 10 * 60 * 1000); - } else { - timerId = setTimeout(__.refresh, sleepTime); - } - }; + // var m = new Date().getMinutes(); + // if (m >= 50 || m <= 15) { + // timerId = setTimeout(__.refreshConfig, 10 * 60 * 1000); + // } else { + // timerId = setTimeout(__.refreshConfig, sleepTime); + // } + //}; this.isEnabled = function (tag) { @@ -281,8 +280,8 @@ var CFG_MANGER = (function () { var msgHandler = function (m, s, r) { if (m && m.action === 'enter12306') { sleepTime = 20 * 60 * 1000; - if (lastUpdate === null || (new Date() - lastUpdate) >= 20 * 60 * 1000) - __.refresh(); + //if (lastUpdate === null || (new Date() - lastUpdate) >= 20 * 60 * 1000) + // __.refreshConfig(); } if (m && m.action === 'setUserConfig') { __.userConfig = $.extend({}, __.userConfig, m.detail); @@ -294,7 +293,7 @@ var CFG_MANGER = (function () { chrome.runtime.onMessage.addListener(msgHandler); chrome.runtime.onMessageExternal.addListener(msgHandler); - this.refresh(); + //this.refreshConfig(); loaded = true; return this; @@ -652,7 +651,11 @@ var CFG_MANGER = (function () { (function directAccessModule() { /// 服务器IP - var valid = window.external.LieBaoLookupDnsAddress ? 1 : 0; + + //TODO: 由于目前猎豹后端并没有现有的云服务平台,并不支持.NET服务,所以暂时下架。 + //重新上架需要部署服务器端。详情联系木鱼,给不给回复看心情。 + + var valid = 0; //window.external.LieBaoLookupDnsAddress ? 1 : 0; var enableDirectAccess = typeof (chrome.tabs.httpRequest) === "function"; chrome.runtime.onMessage.addListener(function (m, s, r) { @@ -1263,7 +1266,8 @@ var CFG_MANGER = (function () { chrome.runtime.onMessage.addListener(msgCallback); chrome.runtime.onMessageExternal.addListener(msgCallback); - checkUpdate(); + //TODO 移除内建的检查更新机制,因为这个不是很必须 + //checkUpdate(); })(); //#endregion diff --git a/RwTicketAssistantV3/app/manifest.json b/RwTicketAssistantV3/app/manifest.json index b033047..948e003 100644 --- a/RwTicketAssistantV3/app/manifest.json +++ b/RwTicketAssistantV3/app/manifest.json @@ -19,7 +19,7 @@ "description": "猎豹抢票大师(原猎豹抢票党/12306订票助手): 帮您订票的智能助理 by 木鱼,全力为您的车票购买献计献策!", "key": "7k6gnXVACvUPU2DfslJgSrWJTHqIg5uwd+Kgl/5zSg==", "name": "猎豹抢票大师", - "version": "7.7.1", + "version": "7.8.1", "manifest_version": 2, "icons": { "16": "icons/icon_16.png", @@ -29,7 +29,6 @@ }, "homepage_url": "http://www.fishlee.net/", "permissions": [ "management", "tabs", "http://*.12306.cn/*", "https://*.12306.cn/*", "http://*.fishlee.net/*", "http://*.liebao.cn/*", "notifications", "webRequest", "webRequestBlocking", "http://*.fishlee.net/*", "http://*.ijinshan.com/*", "*://*/*" ], - "update_url": "http://www.fishlee.net/service/update2/44/44/update_lb.xml", "background": { "page": "background.html" }, diff --git a/Web12306/index.html b/Web12306/index.html index 6c77042..e250085 100644 --- a/Web12306/index.html +++ b/Web12306/index.html @@ -711,7 +711,7 @@ 由此引起的加价由12306获得,与本软件无关。

问题反馈渠道: - 常见问题 | 猎豹官微 | QQ群求助 | 木鱼微博 + 猎豹官微 @@ -1184,7 +1184,7 @@
遇到问题反馈渠道:
- 猎豹论坛 | 猎豹官微 | 订票求助 | 木鱼微博 + 猎豹论坛 | 猎豹官微