修复订单会重复提交 #183 #187

This commit is contained in:
Jalin
2019-09-17 16:11:42 +08:00
parent 7136474a6b
commit f377c7a849

View File

@@ -378,10 +378,12 @@ class Order:
elif 'waitTime' in result_data:
# 计算等待时间
wait_time = int(result_data.get('waitTime'))
if wait_time == -1 or wait_time == -100: # 成功
if wait_time == -1: # 成功
# /otn/confirmPassenger/resultOrderForDcQueue 请求订单状态 目前不需要
# 不应该走到这
return order_id
elif wait_time == -100: # 重新获取订单号
pass
elif wait_time >= 0: # 等待
OrderLog.add_quick_log(
OrderLog.MESSAGE_QUERY_ORDER_WAIT_TIME_WAITING.format(result_data.get('waitCount', 0),