论坛首页 Java企业应用论坛

用httpclient开发的在线自动抢订火车票系统(已上传源代码)

浏览 180880 次
该帖已经被评为精华帖
作者 正文
   发表时间:2012-01-09  
楼主大才啊!
0 请登录后投票
   发表时间:2012-01-09  
顶一个,不是一般的给力。。。
0 请登录后投票
   发表时间:2012-01-09  
楼主,人才啊。 学习了。
0 请登录后投票
   发表时间:2012-01-09  
把JAR包也穿下嘛~~
0 请登录后投票
   发表时间:2012-01-09  

兄弟,给个说明:

 

					String from_station_telecode = TrainDataUtils.stationNames.get(queryStrs[0]);//出发站点代码
					String to_station_telecode = TrainDataUtils.stationNames.get(queryStrs[1]);//到达站点代码
					String queryUrl = queryUrlTemp.replace("${train_date}", TrainDataUtils.query_train_date)
										.replace("${from_station_telecode}", from_station_telecode)
										.replace("${to_station_telecode}", to_station_telecode);
					
					String seatValue = TrainDataUtils.seatNameValueMap.get(queryStrs[3]);//座位在官网提交数据中的值
					int seatIndex = TrainDataUtils.seatNameIndexMap.get(queryStrs[3]);//座位在官网搜索数据中所在的序号

 

seatValue 和 seatIndex 这两个参数没理解是什么意思 具体填什么

0 请登录后投票
   发表时间:2012-01-09  
witcheryne 写道

兄弟,给个说明:

 

 

					String from_station_telecode = TrainDataUtils.stationNames.get(queryStrs[0]);//出发站点代码
					String to_station_telecode = TrainDataUtils.stationNames.get(queryStrs[1]);//到达站点代码
					String queryUrl = queryUrlTemp.replace("${train_date}", TrainDataUtils.query_train_date)
										.replace("${from_station_telecode}", from_station_telecode)
										.replace("${to_station_telecode}", to_station_telecode);
					
					String seatValue = TrainDataUtils.seatNameValueMap.get(queryStrs[3]);//座位在官网提交数据中的值
					int seatIndex = TrainDataUtils.seatNameIndexMap.get(queryStrs[3]);//座位在官网搜索数据中所在的序号

 

seatValue 和 seatIndex 这两个参数没理解是什么意思 具体填什么

 

同问,是不是要单独写一个地方获得验证码?

 

0 请登录后投票
   发表时间:2012-01-09  
牛叉啊 太强了 共同学习啊
0 请登录后投票
   发表时间:2012-01-09  
很好的创意, 大都是满足女友, 8错。
0 请登录后投票
   发表时间:2012-01-09  
小心铁道部把你抓取当替罪羊,说你攻击他网站,导致网站无法访问。
0 请登录后投票
   发表时间:2012-01-09  
明白了,在TrainDataUtils 中设置。
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics