完善动卧座位相关判断

pull/134/head
paul 2019-01-09 16:45:49 +08:00
parent 25c33e413e
commit f4f0e7dfb3
2 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ seat_conf = {'商务座': 32,
'软座': 24,
'硬座': 29,
'无座': 26,
'动卧': 33,
}
if sys.version_info.major == 2:
seat_conf_2 = dict([(v, k) for (k, v) in seat_conf.iteritems()])

View File

@ -57,6 +57,7 @@ class getPassengerDTOs:
'软座': 2,
'软卧': 4,
'硬卧': 3,
'动卧': 1,
}
return str(passengerTicketStr[set_type.replace(' ', '')])