소스 검색

日志打印订单不存在数据

locky 2 달 전
부모
커밋
a8df62dec4
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Controller/PaymentCycle.py

+ 2 - 1
Controller/PaymentCycle.py

@@ -508,7 +508,8 @@ class PaypalCycleNotify(View):
                                                                            'userID__username', 'userID__region_country',
                                                                            'create_vod', 'coupon_id')
             if not order_qs.exists():
-                PAY_LOGGER.info('PayPal周期扣款失败---根据order_id查询订单数据不存在')
+                PAY_LOGGER.info('PayPal周期扣款失败---根据order_id查询订单数据不存在,order_id:{},agreement_id:{}'.
+                                format(order_id, agreement_id))
                 return HttpResponse('fail', status=500)
 
             # 判断用户地区是否跟服务器地区匹配