We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
// 开始查询余票 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; } 这个地方咋不能用多线程呀
The text was updated successfully, but these errors were encountered:
可以,开始有考虑过,怕刷得太频繁封IP,想着想着就又没加上去了
Sorry, something went wrong.
No branches or pull requests
// 开始查询余票
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;
}
这个地方咋不能用多线程呀
The text was updated successfully, but these errors were encountered: