Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

带有学生信息的乘客无法选择成人票 #47

Closed
ybw2016v opened this issue Sep 27, 2018 · 12 comments
Closed

带有学生信息的乘客无法选择成人票 #47

ybw2016v opened this issue Sep 27, 2018 · 12 comments

Comments

@ybw2016v
Copy link

带有学生信息的乘客无法选择成人票,直接自动下单成为学生票。

@testerSunshine
Copy link
Owner

学生信息的不是应该买学生皮票吗?是根据你的联系人信息自动下单
Duplicate of #

@ybw2016v
Copy link
Author

学生信息的不是应该买学生皮票吗?是根据你的联系人信息自动下单
Duplicate of #

学生票有区间、时间和次数限制,超出范围的取不了票……

@testerSunshine
Copy link
Owner

学生信息的不是应该买学生皮票吗?是根据你的联系人信息自动下单
Duplicate of #

学生票有区间、时间和次数限制,超出范围的取不了票……

目前的能快速解决的办法就是更新一下你的联系人,变成成人

@dong-zeyu
Copy link

if self.is_more_ticket_num is 1:
passengerTicketStrList.append(
'0,' + user_info[0]['passenger_type'] + "," + 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,' + user_info[i]['passenger_type'] + "," + 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'] + '_')

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'] + '_') 

来强制购买成人票

@followmejoy
Copy link

添加了两个乘车人,买的车票会是连坐吗?可以选择座位位置吗?

@ludashuai
Copy link

也可以,直接买学生票,取票的时候,再去人工取票。可以补票

@cjsoft
Copy link

cjsoft commented Apr 9, 2019

能不能在设置里面加一个字段来强制购买某个票种啊

@Xuxiaotuan
Copy link

dizzam 兄弟的可以

@EXing
Copy link

EXing commented Dec 24, 2019

也可以,直接买学生票,取票的时候,再去人工取票。可以补票

别做死,没学生证票都不给你补!!

@kongzhongfeima
Copy link

带有学生信息的乘客无法选择成人票,直接自动下单成为学生票。

老哥 确定带有学生信息的乘客直接自动下单成为学生票吗

@lss-1138
Copy link

lss-1138 commented Jan 4, 2020

请问如果我选了硬卧和硬座,会优先下单硬卧吗?还是随机?其次,请问是预售前几个小时运行这个脚本,一直挂着就行了吗?还是需要在预售开始前几分钟再跑这个脚本?

@chrislee0518
Copy link

学生想买学生票不需要像楼上所说的修改为3,直接跑程序就行吗

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests