111

parent ebb6534f
......@@ -73,7 +73,7 @@ def add_errorhandler(app):
requests.adapters.DEFAULT_RETRIES = 5 # 增加重连次数
s = requests.session()
s.keep_alive = False
res = s.get(url+'?tampToken='+token)
res = s.get(url+'?tampToken='+token, timeout=2)
resp = res.json()
if resp['statusCode'] != "0000":
raise CustomFlaskErr(Errors.TOKEN_INVALID)
......
......@@ -159,6 +159,7 @@ class ConsumeOrderNotify(Resource):
def post(self):
"""."""
res_info = request.stream.read(request.content_length or 0).decode()
print('消费订单支付成功通知信息', res_info)
logging.info('支付成功通知信息', res_info)
res = order_service.alipayWxPayCheck(res_info)
if res['success']:
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment