|
@@ -355,6 +355,14 @@ class PaypalCycleNotify(View):
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
if lang != 'cn':
|
|
if lang != 'cn':
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/en_success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/en_success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
|
|
+
|
|
|
|
+ try:
|
|
|
|
+ check_thread = threading.Thread(
|
|
|
|
+ target=AgentOrderView.check_agent_service_package, args=(orderID, UID, rank)
|
|
|
|
+ )
|
|
|
|
+ check_thread.start()
|
|
|
|
+ except Exception as e:
|
|
|
|
+ logger.error('{}paypal自动续费异步检查代理订单失败:{}'.format(orderID, repr(e)))
|
|
logger.info('{UID}成功开通paypal自动续费:----'.format(UID=UID))
|
|
logger.info('{UID}成功开通paypal自动续费:----'.format(UID=UID))
|
|
return HttpResponseRedirect(red_url)
|
|
return HttpResponseRedirect(red_url)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
@@ -445,7 +453,7 @@ class PaypalCycleNotify(View):
|
|
'userID__username',
|
|
'userID__username',
|
|
'userID__userID', 'coupon_id')
|
|
'userID__userID', 'coupon_id')
|
|
if not order_qs.exists():
|
|
if not order_qs.exists():
|
|
- PAY_LOGGER.info('PayPal周期扣款失败---根据paymentID查询订单数据不存在')
|
|
|
|
|
|
+ PAY_LOGGER.info('{}PayPal周期扣款失败---根据paymentID查询订单数据不存在'.format(paypal_transaction_id))
|
|
return HttpResponse('Fail', status=500)
|
|
return HttpResponse('Fail', status=500)
|
|
|
|
|
|
# 判断用户地区是否跟服务器地区匹配
|
|
# 判断用户地区是否跟服务器地区匹配
|