Skip to content

Commit

Permalink
Merge pull request #401 from DingGHui/master
Browse files Browse the repository at this point in the history
修改调用submitApi返回值判断
  • Loading branch information
pjialin authored Jan 7, 2021
2 parents 6b6bf41 + 9e529c1 commit 49d35aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py12306/order/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def submit_order_request(self):
}
response = self.session.post(API_SUBMIT_ORDER_REQUEST, data)
result = response.json()
if result.get('data') == 'N':
if result.get('data') == '0':
OrderLog.add_quick_log(OrderLog.MESSAGE_SUBMIT_ORDER_REQUEST_SUCCESS).flush()
return True
else:
Expand Down

0 comments on commit 49d35aa

Please sign in to comment.