优化座位提示
This commit is contained in:
@@ -62,4 +62,4 @@ class OrderLog(BaseLog):
|
|||||||
return cls.MESSAGE_ORDER_SUCCESS_NOTIFICATION_INFO.format(query.get_info_of_left_station(),
|
return cls.MESSAGE_ORDER_SUCCESS_NOTIFICATION_INFO.format(query.get_info_of_left_station(),
|
||||||
query.get_info_of_arrive_station(),
|
query.get_info_of_arrive_station(),
|
||||||
query.get_info_of_train_number(),
|
query.get_info_of_train_number(),
|
||||||
query.get_info_of_left_date(), query.current_seat)
|
query.get_info_of_left_date(), query.current_seat_name)
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class Order:
|
|||||||
voice_info = {
|
voice_info = {
|
||||||
'left_station': self.query_ins.left_station,
|
'left_station': self.query_ins.left_station,
|
||||||
'arrive_station': self.query_ins.arrive_station,
|
'arrive_station': self.query_ins.arrive_station,
|
||||||
'set_type': self.query_ins.current_seat,
|
'set_type': self.query_ins.current_seat_name,
|
||||||
'orderno': self.order_id
|
'orderno': self.order_id
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -32,6 +32,7 @@ class Job:
|
|||||||
account_key = 0
|
account_key = 0
|
||||||
allow_seats = []
|
allow_seats = []
|
||||||
current_seat = None
|
current_seat = None
|
||||||
|
current_seat_name = ''
|
||||||
current_order_seat = None
|
current_order_seat = None
|
||||||
allow_train_numbers = []
|
allow_train_numbers = []
|
||||||
except_train_numbers = []
|
except_train_numbers = []
|
||||||
@@ -266,6 +267,7 @@ class Job:
|
|||||||
self.passengers = passengers
|
self.passengers = passengers
|
||||||
|
|
||||||
def set_seat(self, seat):
|
def set_seat(self, seat):
|
||||||
|
self.current_seat_name = seat
|
||||||
self.current_seat = SeatType.dicts.get(seat)
|
self.current_seat = SeatType.dicts.get(seat)
|
||||||
self.current_order_seat = OrderSeatType.dicts.get(seat)
|
self.current_order_seat = OrderSeatType.dicts.get(seat)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user