diff --git a/README.md b/README.md index b43d415..7d2ec49 100644 --- a/README.md +++ b/README.md @@ -633,8 +633,22 @@ **版本:4.9.5** -* * 修正常用联系人等页面出现显示不出界面的BUG -* * 为出发时间和到达时间添加选项开关 +* 修正常用联系人等页面出现显示不出界面的BUG +* 为出发时间和到达时间添加选项开关 + + +**版本:4.9.6** +* 修正高铁或动车之一过滤的时候依然提示有票的BUG +* 增加N首提示音乐(从手机铃声网站上扒拉下来的乱七八糟的..) +* 修正在不启用自动变换车次类型的情况下依然会自动取消勾选『全部』的BUG +* 修正自动预定可能存在的问题 +* 修正其它一些涉及席别的地方存在的可能隐藏BUG +* 修正兼容性版本标记 ++ 增加全新的界面提示功能 +* 登录界面微调 +* 修改联系人加载策略 +* 增加重新启用已禁用功能开关 +* 修正出行模式保存后如果没有选择席别优选时出错的BUG 官方网站 diff --git a/TicketPackageSyncTool.exe b/TicketPackageSyncTool.exe index f4c40cd..f5830bb 100644 Binary files a/TicketPackageSyncTool.exe and b/TicketPackageSyncTool.exe differ diff --git a/TicketPackageSyncTool/TicketPackageSyncTool/Program.cs b/TicketPackageSyncTool/TicketPackageSyncTool/Program.cs index 7f85dbf..9c22efa 100644 --- a/TicketPackageSyncTool/TicketPackageSyncTool/Program.cs +++ b/TicketPackageSyncTool/TicketPackageSyncTool/Program.cs @@ -156,8 +156,15 @@ static void FixUpdateXmlVersion(string version) static void FixUpdateJsVersion(string version) { var xmls = System.IO.Directory.GetFiles(_root, "version*.js"); + var isbeta = version.Count(s => s == '.') == 3; foreach (var f in xmls) { + var fn = System.IO.Path.GetFileName(f); + if (isbeta ^ fn.IndexOf("_beta", StringComparison.OrdinalIgnoreCase) == 0) + { + continue; + } + Console.WriteLine("[INFO] 修正 " + System.IO.Path.GetFileName(f) + " 中的版本号...."); ModifyVersionJs(f, version); } @@ -502,7 +509,18 @@ public static void ModifyXmlVersion(string filePath, string version, System.Text static void ModifyVersionJs(string filepath, string version) { var result = new List(); - result.Add("var version_12306_helper = \"" + version + "\";"); + + if (version.Count(s => s == '.') == 3) + { + result.Add("var version_12306_helper = \"" + version.Substring(0, version.LastIndexOf(".")) + "\";"); + result.Add("var version_12306_helper_beta = \"" + version + "\";"); + } + else + { + result.Add("var version_12306_helper = \"" + version + "\";"); + result.Add("var version_12306_helper_beta = \"" + version + "\";"); + } + result.Add("var version_updater = ["); result.AddRange(_updates); result.Add("];"); diff --git a/sogou/manifest.xml b/sogou/manifest.xml index 7cf249e..a191ac1 100644 --- a/sogou/manifest.xml +++ b/sogou/manifest.xml @@ -4,7 +4,7 @@ 12306订票助手 true 帮您在极速模式下订票的助手 - 4.9.5.1 + 4.9.6 1 木鱼(www.fishlee.net) diff --git a/src/12306_ticket_helper.user.js b/src/12306_ticket_helper.user.js index b83408f..f2a4175 100644 --- a/src/12306_ticket_helper.user.js +++ b/src/12306_ticket_helper.user.js @@ -11,7 +11,7 @@ // @match https://www.12306.cn/otsweb/* // @icon http://www.12306.cn/mormhweb/images/favicon.ico // @run-at document-idle -// @version 4.9.5.1 +// @version 4.9.6 // @updateURL http://static.fishlee.net/_softdownload/12306_ticket_helper.user.js // @supportURL http://www.fishlee.net/soft/44/ // @homepage http://www.fishlee.net/soft/44/ @@ -21,7 +21,7 @@ //=======START======= -var version = "4.9.5.1"; +var version = "4.9.6"; var updates = [ "* 修正高铁或动车之一过滤的时候依然提示有票的BUG", "* 增加N首提示音乐(从手机铃声网站上扒拉下来的乱七八糟的..)", @@ -29,13 +29,17 @@ var updates = [ "* 修正自动预定可能存在的问题", "* 修正其它一些涉及席别的地方存在的可能隐藏BUG", "* 修正兼容性版本标记", - "+ 增加全新的界面提示功能" + "+ 增加全新的界面提示功能", + "* 登录界面微调", + "* 修改联系人加载策略", + "* 增加重新启用已禁用功能开关", + "* 修正出行模式保存后如果没有选择席别优选时出错的BUG" ]; var faqUrl = "http://www.fishlee.net/soft/44/faq.html"; //标记 var utility_emabed = false; -var compVersion = "5.75"; +var compVersion = "5.77"; //#region -----------------UI界面-------------------------- @@ -157,7 +161,7 @@ function injectDom() { html.push('

啊嘞……看这里!本助手完全免费啊诸位大人!任何在第三方网站上出售的软件全他喵的是侵权出售啊!!看到的时候请亲务必记得退款退货打差评向青天大老爷举报啊!!

'); html.push('

回家是一个单纯而简单的心愿,希望我们不会变得太复杂……

'); html.push('

任何版本之间,功能上没有任何区别,So……不要问作者万一资助的话会有神马新功能,木有的说…… (= ̄ω ̄=)

'); - html.push(''); + html.push(''); html.push(''); html.push(''); html.push(''); @@ -230,7 +234,7 @@ function injectDom() { } }); $("#unReg, a.reSignHelper").live("click", function () { - if (utility.regInfo.result == 0 && utility.regInfo.type != 'DEMO') { + if (utility.regInfo.partner != 1 && utility.regInfo.result == 0 && utility.regInfo.type != 'DEMO') { if (!confirm("确定要重新注册吗?")) return; utility.setSnInfo("", ""); @@ -301,13 +305,25 @@ function injectDom() { } } + //撤销禁用功能 + $(".resetFuncFlag").live("click", function () { + var fun = this.dataset.function; + var idx = $.inArray(fun, utility.disabledFeatures()); + if (idx == -1) return; + + utility.disabledFeaturesCache.splice(idx, 1); + utility.disableFeature(); + utility.getTopWindow().location.reload(); + }); + //注册 var result = utility.verifySn(true); if (result.result == 0 && result.type != 'DEMO') { var info = opt.find(".registered").show().find("strong"); info.eq(0).html(result.name); info.eq(1).html(result.typeDesc); - } else { + } + if (result.partner == 1 || result.result != 0 || result.type == "DEMO") { opt.find(".regTable").show(); if (result.result != 0) { @@ -357,7 +373,7 @@ var utility = { return $.inArray(flag, utility.disabledFeatures()) != -1; }, disableFeature: function (flag) { - utility.disabledFeaturesCache.push(flag); + if (flag) utility.disabledFeaturesCache.push(flag); utility.setPref("disabled", utility.disabledFeaturesCache.join('|')); }, clearFeatrueDisabled: function () { @@ -1231,7 +1247,6 @@ function unsafeInvoke(callback) { var cb = document.createElement("script"); cb.type = "text/javascript"; cb.textContent = buildCallback(callback); - console.log(cb.textContent); document.head.appendChild(cb); } @@ -2249,13 +2264,13 @@ function initTicketQuery() {
  • \
  • \
  • \ -
  • \ +
  • \ \ -\ +\ " ); $(".in_fromr").css({ "margin-right": "0px", "width": "auto" }).find("ul li:first").before("
  • "); @@ -2364,7 +2379,7 @@ function initTicketQuery() { \ \ \ -\ +\ "); extrahtml.push("\ \ \ -\ +\ \