kalvingit / j12306 Goto Github PK
View Code? Open in Web Editor NEW12306抢票程序JAVA版
12306抢票程序JAVA版
按着上面操作,按F5刷新页面,并没有找到 logdevice请求
怎么搞
乘票人是自动获取全部的?联系人里的全部给下单吗?
假如我这么长
G212,G1866,G54,G116,G9412,G1258,G122,G4196,G1252,G1228,G1924,G2664,G132,G460,G1810,G7296,G416,G1932,G146,G148,G442,G1936,G152,G216,G44,G7292,G7192,G298,G2662,G7792,G7290,G7590,G9468,G7190,G7300,G4072,G4718,G4322,G1204
一定会抛异常,G146,G148,G442,G1936,G152,G216,G44,G7292,G7192,G298,G2662,G7792,G7290,G7590,G9468,G7190,G7300,G4072,G4718,G4322,G1204
这样就没事了
老哥代码还能用不 我的打开就出现302 接口不对
请问下大佬这个是怎么回事,因为他提示的是 cn.hutool.json.JSONException这个错误
// 开始查询余票
Ticket ticket = new Ticket(this.session, this.trainDate, this.fromStation, this.toStation);
// String[] split = this.trainDates.split(",");
// int len = split.length;
// ExecutorService executorService = Executors.newFixedThreadPool(len);
stopLop: while (true) {
HttpResponse httpResponse;
try {
httpResponse = ticket.query();
} catch (HttpException e) {
log.info("请求超时,或无法访问,错误信息:{}", e.getMessage());
continue;
}
这个地方咋不能用多线程呀
[2019-12-23 19:03:46] [INFO] com.Lixin.J12306.Go12306: 返回的查询信息:
[2019-12-23 19:03:46] [INFO] com.Lixin.J12306.Go12306: query tickets status = 302,body=
[2019-12-23 19:03:46] [INFO] com.Lixin.J12306.Go12306: -------线程【main】无法获取车票信息,状态码:302
这个官网是可以显示售出的 但是还是查不到,而且我又查开那个控制台,发现了是可以接收到数据的
总是显示 当前找不到车票信息
请问我把项目导入到IDEA中为什么不能run,因为我是一个小白,请问 可以指导我吗
或提供一个思路
打印进入12306登录页,状态码为200。然后超时
[2019-12-24 14:13:40] [INFO] com.kalvin.J12306.api.Login: postUamTK http status = 200
Exception in thread "main" cn.hutool.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
at cn.hutool.json.JSONTokener.syntaxError(JSONTokener.java:373)
Exception in thread "main" cn.hutool.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
选了个有票的日期测试抢票,提交订单的时候,返回的数据body.data总是N,总是提示抢票失败。
现在提交订单时,会有滑动验证。验证通过才能提交订单。这样会不会有影响呢???
北京西|BXP 这是你们的
我看到是 北京西 BJP
可以用 selinum
[2019-12-24 13:21:51] [ERROR] com.kalvin.J12306.Go12306: -------线程【main】无法获取车票信息,状态码:302;程序会在10次访问302后切换到另一个查询接口
[2019-12-24 13:21:54] [ERROR] com.kalvin.J12306.Go12306: -------线程【main】无法获取车票信息,状态码:302;程序会在10次访问302后切换到另一个查询接口
[2019-12-24 13:21:56] [ERROR] com.kalvin.J12306.Go12306: -------线程【main】无法获取车票信息,状态码:302;程序会在10次访问302后切换到另一个查询接口
[2019-12-24 13:21:58] [ERROR] com.kalvin.J12306.Go12306: -------线程【main】无法获取车票信息,状态码:302;程序会在10次访问302后切换到另一个查询接口
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.