Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
12306 Auto Query => A javascript snippet to help you book ticket
/*
12306 Auto Query => A javascript snippet to help you book tickets online.
Copyright (C) 2011-2012 Jingqin Lynn
Includes jQuery
Copyright 2011, John Resig
Dual licensed under the MIT or GPL Version 2 licenses.
http://jquery.org/license
Includes Sizzle.js
http://sizzlejs.com/
Copyright 2011, The Dojo Foundation
Released under the MIT, BSD, and GPL Licenses.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// ==UserScript==
// @name 12306 Auto Query
// @namespace http://project.quietmusic.org/j/
// @description A javascript snippet to help you book tickets online.
// @include *://dynamic.12306.cn/otsweb/order/querySingleAction.do*
// ==/UserScript==
function withjQuery(callback, safe){
if(typeof(jQuery) == "undefined") {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js";
if(safe) {
var cb = document.createElement("script");
cb.type = "text/javascript";
cb.textContent = "jQuery.noConflict();(" + callback.toString() + ")(jQuery);";
script.addEventListener('load', function() {
document.head.appendChild(cb);
});
}
else {
var dollar = undefined;
if(typeof($) != "undefined") dollar = $;
script.addEventListener('load', function() {
jQuery.noConflict();
$ = dollar;
callback(jQuery);
});
}
document.head.appendChild(script);
} else {
callback(jQuery);
}
}
withjQuery(function($){
var isTicketAvailable = false;
//The table for displaying tickets
var tbl = $(".obj")[0];
tbl.addEventListener("DOMNodeInserted", function() {
if(checkTickets(event.target))
{
isTicketAvailable = true;
highLightRow(event.target);
}
tbl.firstAppend=false;
}, true);
//Trigger the button
var doQuery = function() {
displayQueryTimes(queryTimes++);
tbl.firstAppend = true;
g.firstRemove = true;
document.getElementById(isStudentTicket ? "stu_submitQuery" : "submitQuery").click();
}
var checkTickets = function(row) {
var hasTicket = false;
var canBook = true;
$("td input[type=button]", row).each(function(i, e) {
if(e.classList.contains("yuding_x")) {
canBook = false;
}
});
if(!canBook) return false;
$("td", row).each(function(i, e) {
if(ticketType[i-1]) {
var info = e.innerText.trim();
if(info != "" && info != "--" && info != "") {
hasTicket = true;
highLightCell(e);
}
}
});
return hasTicket;
}
//The box into which the message is inserted.
var g = document.getElementById("gridbox");
//When the message is removed, the query should be completed.
g.addEventListener("DOMNodeRemoved", function() {
if(g.firstRemove) {
g.firstRemove = false;
if (isTicketAvailable) {
if (isAutoQueryEnabled)
document.getElementById("refreshButton").click();
onticketAvailable(); //report
}
else {
//wait for the button to become valid
}
}
}, true);
//hack into the validQueryButton function to detect query
var _validQueryButton = validQueryButton;
validQueryButton = function() {
_validQueryButton();
if(isAutoQueryEnabled) doQuery();
}
var queryTimes = 0; //counter
var isAutoQueryEnabled = false; //enable flag
//please DIY:
var audio = null;
var onticketAvailable = function() {
if(Audio) {
if(!audio) {
audio = new Audio("http://www.w3school.com.cn/i/song.ogg");
audio.loop = true;
}
audio.play();
}
else {
alert("可以订票了!");
}
}
var highLightRow = function(row) {
$(row).css("background-color", "red");
}
var highLightCell = function(cell) {
$(cell).css("background-color", "blue");
}
var displayQueryTimes = function(n) {
document.getElementById("refreshTimes").innerText = n;
};
var isStudentTicket = false;
//Control panel UI
$("<div/>").attr("style", "position:fixed;right:0;bottom:0;z-index:999;").append(
$("<input/>").attr("type", "checkBox").change(function(){
isStudentTicket = this.checked;
})
).append(
$("<span/>").text("学生")
).append(
$("<button/>").attr("id", "refreshButton").text("自动刷新").click(function() {
if(!isAutoQueryEnabled) {
isTicketAvailable = false;
if(audio && !audio.paused) audio.pause();
isAutoQueryEnabled = true;
doQuery();
this.innerText="停止刷新";
}
else {
isAutoQueryEnabled = false;
this.innerText="自动刷新";
}
})
).append(
$("<p/>").text("尝试次数:").append(
$("<span/>").attr("id", "refreshTimes").text("0")
)
).appendTo(document.body);
//Ticket type selector & UI
var ticketType = new Array();
$(".hdr tr:eq(2) td").each(function(i,e) {
ticketType.push(false);
if(i<3) return;
ticketType[i] = true;
var c = $("<input/>").attr("type", "checkBox").attr("checked", "true");
c[0].ticketTypeId = i;
c.change(function() {
ticketType[this.ticketTypeId] = this.checked;
}).appendTo(e);
});
}, true);
@debugman

This comment has been minimized.

Copy link

commented Jan 5, 2012

This script does not work when we cannot log in, so it is better to provide a auto-login script

@enimo

This comment has been minimized.

Copy link

commented Jan 5, 2012

actually a auto login script is really necessary

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 5, 2012

An auto login script is currently unavailable for lack of captcha recognizing. Thanks for understanding.
Any code for the captcha is appreciated.

@mekey111

This comment has been minimized.

Copy link

commented Jan 5, 2012

How does this script work? I mean when I login to the web, it works automatically?

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 5, 2012

@mekey111: It adds an "auto refresh" button to the right-bottom of the query page. Sorry for no English descriptions and/or instructions provided at the moment.

@bizbin

This comment has been minimized.

Copy link

commented Jan 5, 2012

这个怎么用啊

@Icedroid

This comment has been minimized.

Copy link

commented Jan 5, 2012

这句话是什么意思?
cb.textContent = "jQuery.noConflict();(" + callback.toString() + ")(jQuery);";

@fundon

This comment has been minimized.

Copy link

commented Jan 5, 2012

@Icedroid 防止$变量冲突,设置脚本内容

@Icedroid

This comment has been minimized.

Copy link

commented Jan 5, 2012

@cfddream callback.toString() 这个内容放到一个括号里可以执行的吗?没有用过这种技巧,请指教。

@fuxu

This comment has been minimized.

Copy link

commented Jan 5, 2012

最大的问题是,没有说这段代码怎么用

@ikbear

This comment has been minimized.

Copy link

commented Jan 5, 2012

这样一个程序写出来,却没告诉用户怎么去用,不如不写。

@iopzxc

This comment has been minimized.

Copy link

commented Jan 5, 2012

在Chromium上调试,貌似这不支持自动订票,这是刷剩余票数的脚本。

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 5, 2012

@dickfu: @ikbear: 对不起!我只是把代码贴在这里,没有把相关的介绍也弄过来。
这里是 G+ 上的一个贴子,也许可供参考。
https://plus.google.com/117239089659078825668/posts/fRMcziZUGk4

@wangcopy2000

This comment has been minimized.

Copy link

commented Jan 6, 2012

怎么没有声音呢

@mekey111

This comment has been minimized.

Copy link

commented Jan 6, 2012

@quietlynn Thank you! It does work. If there is any available tickets, it goes to blue.
If you can add these two functions, it will be better:
1)auto login to the web;
2)keep connection alive;

Anyway, thank you. Great job.

@fundon

This comment has been minimized.

Copy link

commented Jan 6, 2012

@Icedroid callback.toString() 返回函数的执行代码: function (/args/) {...}, 又加了一层(func...)(jQuery),就可以自执行了

@kevintop

This comment has been minimized.

Copy link

commented Jan 6, 2012

求教,写了一个自动登录的插件,怎么在github里把crx文件传上来呢???

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 6, 2012

@kevintop: gist 是不行的,建议建立一个项目。

@kevintop

This comment has been minimized.

Copy link

commented Jan 6, 2012

12306.com自动登录脚本:

终于改造好了,感谢bitplus的建议。
程序参考: https://gist.github.com/1554666, 特此感谢。。。
另,这是我写的第一个user script程序,错误在所难免,欢迎大家拍砖。。。

本程序不会记录您的用户名和密码,请放心使用!


本程序解决的问题:
针对 https://dynamic.12306.cn/otsweb/ 网站登录难的问题,特写了该小插件,只需要输入一次用户名、密码、验证码,即可进行多次尝试登录,直至登录成功。

使用说明:

在chrome中,打开https://gist.github.com/raw/1570973/f200dd587f6d68ab81edf74436b1fb7d91c79973/12306AutoLogin.user.js 地址,进行插件安装。
然后在浏览器中打开https://dynamic.12306.cn/otsweb/ , 输入用户名、密码、验证码,然后点“自动登录”按钮即可。

如果登录成功后,会跳转到车票查询页面,此时配合12306 Auto Query 程序 效果更佳。。。


另外,在IE下可以使用,

Internet Explorer 6-8 用户建议安装Trixie扩展:
http://www.bhelpuri.net/Trixie/
把用户脚本放在C:\Program Files\Bhelpuri\Trixie\Scripts文件夹下(64位系统在:C:\Program Files (x86)\Bhelpuri\Trixie\Scripts),
在工具->Trixie Options(Trixie选项)中点击Reload Scripts(重新载入)按钮,再选中该脚本,即可使用。


安装地址:
https://gist.github.com/raw/1570973/f200dd587f6d68ab81edf74436b1fb7d91c79973/12306AutoLogin.user.js

源代码地址:
https://gist.github.com/1570973

@ishare

This comment has been minimized.

Copy link

commented Jan 6, 2012

都很强大。。谢谢。。有点小问题,这个代码确实提示音没放出来。。麻烦@quietlynn看看

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 6, 2012

我更新了一下代码,这次提示音应该能出来了。

@bitplus

This comment has been minimized.

Copy link

commented Jan 7, 2012

感谢作者的无私奉献~~ 我的同事已经成功刷到票了~~

@darkz1984

This comment has been minimized.

Copy link

commented Jan 7, 2012

很不错的,我用了,但是firefox+greasemonkey可以运行,但是计数没有变化,也没有高亮了,chrome17dev倒是好的,还有我感觉脚本是不是被封杀了。。。有时候会提示超时跳转到其他页面的。。。

@ishare

This comment has been minimized.

Copy link

commented Jan 7, 2012

为什么现在有声音了。。但是不会自动刷新了。。一次刷新后,回来页面上不行了

@ishare

This comment has been minimized.

Copy link

commented Jan 7, 2012

哦。。原来是刷到符合要求的票就不刷了

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 7, 2012

@ishare: 嗯,是这样的设定。刷到票了的话,就没必要再继续刷下去了吧?如果想继续刷,可以再点那个按钮。

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 7, 2012

我更改了一下代码,如果票的数量为空,则不提示。

@ishare

This comment has been minimized.

Copy link

commented Jan 7, 2012

@quietlynn 挺好的。。方便改下做个ie兼容的么?

@FANWENBIN

This comment has been minimized.

Copy link

commented Jan 7, 2012

=。= 这么好的创意,哈哈,学习了~

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 7, 2012

@ishare: IE 不想碰……

@darkz1984

This comment has been minimized.

Copy link

commented Jan 7, 2012

ie蛋疼的,没法用这些脚本。。。

@zzdhidden

This comment has been minimized.

Copy link

commented Jan 7, 2012

声音有时候提示不出来,建议加个桌面通知,chrome支持这个的。

$(document).click(function() {
    if( window.webkitNotifications && window.webkitNotifications.checkPermission() != 0) {
        window.webkitNotifications.requestPermission();
    }   
}); 
var notify = function(str, timeout) {
    if( window.webkitNotifications && window.webkitNotifications.checkPermission() == 0) {
        var notification = webkitNotifications.createNotification(
            null,  // icon url - can be relative
            '订票',  // notification title
            str 
        );  
        notification.show();
        if ( timeout ) { 
            setTimeout(function() {
                notification.cancel();
            }, timeout);
        }   
    } else {
        alert( str );
    }   
}
@zzdhidden

This comment has been minimized.

Copy link

commented Jan 7, 2012

还有那个自动刷新的按钮可不可以放到那个大查询按钮周边, 搞个红色背景。 那个刷新次数提示可以直接显示在按钮上,比如 停止刷新(10次)

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 7, 2012

@zzdhidden: 我现在没法做测试了,因为没帐号……

@zzdhidden

This comment has been minimized.

Copy link

commented Jan 7, 2012

恩, 我自个儿来diy一下。。

@zzdhidden

This comment has been minimized.

Copy link

commented Jan 7, 2012

桌面通知提示添加完成, 顺便合并了一下 @kevintop 自动登录

详细说明可查看:

https://github.com/zzdhidden/12306

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 7, 2012

@zzdhidden: 真好,加油吧~

@kevintop

This comment has been minimized.

Copy link

commented Jan 7, 2012

很好,很强大!顶一个....

@wwbice

This comment has been minimized.

Copy link

commented Jan 7, 2012

我来膜拜了,希望到时能买到票,崇敬各位大牛!!

@yangjuven

This comment has been minimized.

Copy link

commented Jan 8, 2012

赞一下作者,相当不错。不过想问的是:withjQuery(callback, safe),这里的safe是指?从代码中,没有看出端倪。

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 8, 2012

@yangjuven: 在 userscript 中, load 事件发生时 jQuery 可能还未加载,所以将函数内容写入另一个 <script/> 中,这样能确保主函数运行时 jQuery 已经被加载。

@kevintop

This comment has been minimized.

Copy link

commented Jan 8, 2012

写了个自动提交订单的插件,不知道要不要提交上来。。。。

可能有Bug,网站反应慢,不太好测。。。。。。

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 8, 2012

@kevintop: 请随便贴吧。

@owenzhangkai

This comment has been minimized.

Copy link

commented Jan 8, 2012

自动提交,赶紧来吧!!!被系统忙逼疯了!!!

@kevintop

This comment has been minimized.

Copy link

commented Jan 8, 2012

自动提交的代码在: https://gist.github.com/1577671

大家先帮忙测着,有问题提交上去,稍后写帮助和说明。。。

@Blog2012

This comment has been minimized.

Copy link

commented Jan 8, 2012

这个里面原来都是高手啊 学习了 都是好人啊 帮了大忙了 但是谁有IE能用的代码啊 公司不能安装chrome 而且这个提交订单也是老失败 能有这个自动提交的吗?非常感谢啊

@yerik

This comment has been minimized.

Copy link

commented Jan 8, 2012

msg.indexOf('请不要重复提交') > -1
这个判断有问题...

@ghost

This comment has been minimized.

Copy link

commented Jan 8, 2012

“自动提交订单”那个按钮为什么不出来啊

@ghost

This comment has been minimized.

Copy link

commented Jan 8, 2012

“自动提交订单”那个按钮是在IE上不出来, 在chrome下可以出来。
测了一下自动提交订单的脚本, 先是提示”席别不能为空“, 再就是提示”咦。。。您可能订着票啦,先去我的订单看看吧!“

@kingllon

This comment has been minimized.

Copy link

commented Jan 8, 2012

我也发现上面的问题了

@ghost

This comment has been minimized.

Copy link

commented Jan 8, 2012

@bird2005fly

This comment has been minimized.

Copy link

commented Jan 8, 2012

不知道为什么我这里,显示的刷票的一直是1.跟浏览器的版本有关系么?

@cest713

This comment has been minimized.

Copy link

commented Jan 9, 2012

刷票时间长了会提示没有登陆,不知道可不可以隔段时间刷新一下session

@zanghongtu2006

This comment has been minimized.

Copy link

commented Jan 9, 2012

貌似不能用了吧

@Lyunx

This comment has been minimized.

Copy link

commented Jan 9, 2012

现在这个自动登陆的功能已经不能用了,大大更新一下脚本吧~~~

@kevintop

This comment has been minimized.

Copy link

commented Jan 9, 2012

@Lyunx @zanghongtu2006 自动登录的功能正常,可以使用!

@bird2005fly

This comment has been minimized.

Copy link

commented Jan 9, 2012

发现了,如果点选了学生票,就不能自动刷新了

@Lyunx

This comment has been minimized.

Copy link

commented Jan 9, 2012

现在不可以了啊~
10点帮朋友买广州到重庆的票,进登陆的界面,直接显示前面还有多少人在排队,
然后跳到自动登陆页面,跑一次,就提示成功,但实际上并未成功登陆~~~~

@vinsonhe

This comment has been minimized.

Copy link

commented Jan 9, 2012

@kevintop MS不能自动登入了,但实际上是可以的,不过时间真的要好久啊``````要刷近200次吧

@zanghongtu2006

This comment has been minimized.

Copy link

commented Jan 9, 2012

不知道是不是跟验证码自动刷新有关,现在北京好像确实上不去了,提示登陆成功后会继续返回原登陆界面,手动输入密码的话,5次不成功会刷新验证码

@tjulk

This comment has been minimized.

Copy link

commented Jan 9, 2012

现在好像是不能登录了

@zzdhidden

This comment has been minimized.

Copy link

commented Jan 9, 2012

@zanghongtu2006 @tjulk @vinsonhe 刚修了一个自动登录的小bug,详细问题看这里:https://github.com/zzdhidden/12306/issues/5

安装在这里 https://github.com/zzdhidden/12306

@zzdhidden

This comment has been minimized.

Copy link

commented Jan 9, 2012

我没IE,求在IE下使用Trixie安装插件测试。修改了一下插件中不支持IE的脚本。
安装在这里 https://github.com/zzdhidden/12306

@fundon

This comment has been minimized.

Copy link

commented Jan 9, 2012

@tjulk

This comment has been minimized.

Copy link

commented Jan 9, 2012

go-home 项目能添加自主选择车次跟票种吗

@jingledog

This comment has been minimized.

Copy link

commented Jan 9, 2012

能有“改签”的自动查询票务情况吗?

@Blog2012

This comment has been minimized.

Copy link

commented Jan 9, 2012

IE 下面怎么不能自动记住密码和用户名 而且自动登录的字是乱码 进去之后没有自动刷票按钮 没有音乐 没有高亮 也没有自动提交功能 不知道这个大大能突破不?非常期待中

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 9, 2012

@Blog2012 懒得给破浏览器写奇怪的代码的说。反正如果有人愿意修改的话就 fork 一个好了。

@zzdhidden

This comment has been minimized.

Copy link

commented Jan 9, 2012

@Blog2012 测试一下 https://github.com/zzdhidden/12306 修了IE上的几个BUG... 那个脚本需要保存为utf-8编码才不会乱码...

@Blog2012

This comment has been minimized.

Copy link

commented Jan 10, 2012

昨天晚上已经发现了最新版本 非常完美了 在IE上面可以自动登录 自动刷票 自动提交 关键是还可以提前修改乘车日期 提前进入预定界面 而且增加了 自动提交频率控制(太快会被封IP的) 但是小小的问题是进去之后IE上面那个勾选特殊票种 默认为无 已经很不错了 非常完美了 谢谢各位大大 在此学习到了很多 虽然现在已经自己的票买到了 还在帮同事买 脚本已经很完美了 但是我会一直跟踪学习的 新年快乐!

@gauzeehom

This comment has been minimized.

Copy link

commented Jan 10, 2012

下来,学习学习

@fundon

This comment has been minimized.

Copy link

commented Jan 10, 2012

@zzdhidden 可以转成UTF-16

@tjulk

This comment has been minimized.

Copy link

commented Jan 10, 2012

为什么我的ie不好使呢

@jmjustin

This comment has been minimized.

Copy link

commented Jan 10, 2012

刚刚用zzdhidden的程序,订上票了。特来感谢。一并感谢 quietlynn和 kevintop两位。谢啦。

@willlau

This comment has been minimized.

Copy link

commented Jan 10, 2012

人太多的情况下,登录页面都加载不出来,提示Access Denied拒绝访问,手动刷太费劲了。建议加一个自动刷新,登录页面出来后便停止的功能。

@sunyanteng

This comment has been minimized.

Copy link

commented Jan 10, 2012

自动登陆可用,自动查询不可以。firefox下报tbl not defined,代码插不进去了。有人遇到相同情况么?
Error: tbl is undefined
Source File: file:///C:/Documents%20and%20Settings/terrencesun/Application%20Data/Mozilla/Firefox/Profiles/idju15g9.default/gm_scripts/12306_booking_assistant/12306_booking_assistant.user.js
Line: 113
Error: Permission denied for http://www.12306.cn to get property Window.iFrameHeight
Source File: http://www.12306.cn/mormhweb/ggxxfw/wbyyzj/201105/t20110529_1905.jsp?height=740
Line: 11

@roseforyou

This comment has been minimized.

Copy link

commented Jan 10, 2012

@Blog2012

This comment has been minimized.

Copy link

commented Jan 10, 2012

Chrome在公司不能安装 IE其实已经兼容了可以自动登录 自动刷票 修改购票日期提前进入订票界面 自动提交 已经做的很完美了 但是不知道为嘛突然又不能自动登录了 都自动登录了106次了郁闷ing

@creazestone

This comment has been minimized.

Copy link

commented Jan 10, 2012

首先感谢各位大大, 我想提一个需求, 在提示有票的同时, 还可以继续刷票, 因为有的车并不是你想坐的, 但他提示有票后, 又要手动点击刷新!!!

@quietlynn

This comment has been minimized.

Copy link
Owner Author

commented Jan 10, 2012

@creazestone: 其实不妨做一个『忽略指定车次』的功能。不过我现在没有帐号,无法调试,欢迎各位 fork 实现。

@suncrash

This comment has been minimized.

Copy link

commented Jan 11, 2012

好像已经被12306封杀了,使用后就会出现Access Denied。换个IP就能打开

@puyj8818

This comment has been minimized.

Copy link

commented Jan 12, 2012

自动提交订单后,刷了300多次都还在继续刷是怎么回事啊?

@tonylzw

This comment has been minimized.

Copy link

commented Jan 12, 2012

确实,IE 的自动登录程序是不能用,GOOgle浏览器不能支付,还是不够完美

@Blog2012

This comment has been minimized.

Copy link

commented Jan 12, 2012

?IE上面已经可以兼容了啊 自动登录 自动刷票 修改日期 自动提交 可能是你的脚本不对吧

@tonylzw

This comment has been minimized.

Copy link

commented Jan 13, 2012

正确的脚本在哪里,麻烦提供一下
感觉GOOGLE 的脚本已经被封了
提交订单怎么都提交不了
IE手动提交一下就提交了

@merrykid

This comment has been minimized.

Copy link

commented Jan 13, 2012

@bird2005fly 同样有这个问题,勾选了学生票之后无法自动刷新

@fjptd

This comment has been minimized.

Copy link

commented Jan 15, 2012

现在生成订单时,会提示“很抱歉!当前提交订单的人过多,请稍后尝试。”,是不是请再写个JS,帮忙下哦

@assure

This comment has been minimized.

Copy link

commented Jan 16, 2012

现上是不是不好用了,一上午都没有登录进去

@wshwshe

This comment has been minimized.

Copy link

commented Jan 17, 2012

今天用了下自动登录的还可以用,但是自动刷新票的不知道怎么用了。

@csgfox

This comment has been minimized.

Copy link

commented Jan 18, 2012

铁道部出新手段了,会一直显示某趟车有票,但提交订单就提示没票,所以你就刷不了了,一刷还是提示有票,然后就自动停止了

@wshwshe

This comment has been minimized.

Copy link

commented Jan 19, 2012

@zanghongtu2006

This comment has been minimized.

Copy link

commented Jan 19, 2012

@jmjustin

This comment has been minimized.

Copy link

commented Jan 19, 2012

自动提交订单那里铁道部是不是改程序了?我每次提交到第二次的时候都提示验证码出错了。各位有这种情况吗?

@zhang637

This comment has been minimized.

Copy link

commented Sep 20, 2012

请问一下代码什么意思?_validQueryButton 与 validQueryButton什么关系

//hack into the validQueryButton function to detect query
var _validQueryButton = validQueryButton;

validQueryButton = function() {
    _validQueryButton();
    if(isAutoQueryEnabled) doQuery();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.