Ver código fonte

日志打印订单不存在数据

locky 2 meses atrás
pai
commit
a8df62dec4
1 arquivos alterados com 2 adições e 1 exclusões
  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)
 
             # 判断用户地区是否跟服务器地区匹配