This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
带有学生信息的乘客无法选择成人票 #47
Comments
学生信息的不是应该买学生皮票吗?是根据你的联系人信息自动下单 |
学生票有区间、时间和次数限制,超出范围的取不了票…… |
目前的能快速解决的办法就是更新一下你的联系人,变成成人 |
12306/inter/GetPassengerDTOs.py Lines 77 to 94 in 0e6f2ce
L79和L89的“passenger_type”字段指明了是学生还是成人,“3”为学生票,“1”为成人票,可以改成 if self.is_more_ticket_num is 1:
passengerTicketStrList.append(
'0,' + "1" + "," + user_info[0][
"passenger_name"] + "," +
user_info[0]['passenger_id_type_code'] + "," + user_info[0]['passenger_id_no'] + "," +
user_info[0]['mobile_no'] + ',N')
oldPassengerStr.append(
user_info[0]['passenger_name'] + "," + user_info[0]['passenger_id_type_code'] + "," +
user_info[0]['passenger_id_no'] + "," + user_info[0]['passenger_type'] + '_')
else:
for i in xrange(self.is_more_ticket_num):
passengerTicketStrList.append(
'0,' + "1" + "," + user_info[i][
"passenger_name"] + "," + user_info[i]['passenger_id_type_code'] + "," + user_info[i][
'passenger_id_no'] + "," + user_info[i]['mobile_no'] + ',N_' + set_type)
oldPassengerStr.append(
user_info[i]['passenger_name'] + "," + user_info[i]['passenger_id_type_code'] + "," +
user_info[i]['passenger_id_no'] + "," + user_info[i]['passenger_type'] + '_') 来强制购买成人票 |
添加了两个乘车人,买的车票会是连坐吗?可以选择座位位置吗? |
也可以,直接买学生票,取票的时候,再去人工取票。可以补票 |
能不能在设置里面加一个字段来强制购买某个票种啊 |
dizzam 兄弟的可以 |
别做死,没学生证票都不给你补!! |
老哥 确定带有学生信息的乘客直接自动下单成为学生票吗 |
请问如果我选了硬卧和硬座,会优先下单硬卧吗?还是随机?其次,请问是预售前几个小时运行这个脚本,一直挂着就行了吗?还是需要在预售开始前几分钟再跑这个脚本? |
学生想买学生票不需要像楼上所说的修改为3,直接跑程序就行吗 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
带有学生信息的乘客无法选择成人票,直接自动下单成为学生票。
The text was updated successfully, but these errors were encountered: