|
|
|
@ -20,11 +20,7 @@ class ApiSeatLock: |
|
|
|
|
if result_play and result_seat: |
|
|
|
|
play_data = random.choice(redis_data_play) |
|
|
|
|
seat_data = random.choice(redis_data_seat) |
|
|
|
|
seat_id = '' |
|
|
|
|
if isinstance(seat_data, dict): |
|
|
|
|
seat_id = seat_data['cineSeatId'] |
|
|
|
|
if isinstance(seat_data, list): |
|
|
|
|
seat_id = ','.join([seat['cineSeatId'] for seat in seat_data]) |
|
|
|
|
seat_id = ','.join([seat['cineSeatId'] for seat in seat_data]) |
|
|
|
|
return [{'param': 'play_id', 'value': play_data['id'], 'is_checked': True, 'result': True}, |
|
|
|
|
{'param': 'play_update_time', 'value': play_data['cineUpdateTime'], 'is_checked': True, |
|
|
|
|
'result': True}, |
|
|
|
|