|
@@ -265,7 +265,7 @@ class PaypalCycleNotify(View):
|
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功订阅云存套餐',
|
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
|
"%b %dth,%Y", time.localtime())]
|
|
|
- CloudStorage.CloudStorageView.do_vod_msg_Notice(UID, channel, userid, lang, sys_msg_text_list, 'SMS_219738485')
|
|
|
+ CloudStorage.CloudStorageView.do_vod_msg_Notice(self, UID, channel, userid, lang, sys_msg_text_list, 'SMS_219738485')
|
|
|
|
|
|
# return response.json(0)
|
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
@@ -274,6 +274,9 @@ class PaypalCycleNotify(View):
|
|
|
return HttpResponseRedirect(red_url)
|
|
|
except Exception as e:
|
|
|
print(repr(e))
|
|
|
+ logger.info('do_paypal_cycle_return支付失败:----')
|
|
|
+ logger.info("错误行数:{errLine}".format(errLine=e.__traceback__.tb_lineno))
|
|
|
+ logger.info(repr(e))
|
|
|
if order_qs:
|
|
|
order_qs.update(status=10, promotion_rule_id=promotion_rule_id)
|
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/fail.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
@@ -439,7 +442,7 @@ class PaypalCycleNotify(View):
|
|
|
lang = 'en'
|
|
|
else:
|
|
|
lang = 'cn'
|
|
|
- CloudStorage.CloudStorageView.do_vod_msg_Notice(UID, channel, userid, lang,
|
|
|
+ CloudStorage.CloudStorageView.do_vod_msg_Notice(self, UID, channel, userid, lang,
|
|
|
sys_msg_text_list, 'SMS_219738485')
|
|
|
logger.info('-----------------------result')
|
|
|
logger.info('success')
|
|
@@ -461,6 +464,9 @@ class PaypalCycleNotify(View):
|
|
|
print(e)
|
|
|
logger.info('-----------------------paypal异步回调失败')
|
|
|
logger.info(e)
|
|
|
+ logger.info('do_paypal_webhook_notify支付失败:----')
|
|
|
+ logger.info("错误行数:{errLine}".format(errLine=e.__traceback__.tb_lineno))
|
|
|
+ logger.info(repr(e))
|
|
|
return HttpResponse('fail')
|
|
|
return HttpResponse('fail')
|
|
|
|
|
@@ -610,7 +616,7 @@ class PaypalCycleNotify(View):
|
|
|
lang = 'en'
|
|
|
else:
|
|
|
lang = 'cn'
|
|
|
- CloudStorage.CloudStorageView.do_vod_msg_Notice(UID, channel, userid, lang,
|
|
|
+ CloudStorage.CloudStorageView.do_vod_msg_Notice(self, UID, channel, userid, lang,
|
|
|
sys_msg_text_list, 'SMS_219738485')
|
|
|
return HttpResponse('success')
|
|
|
except Exception as e:
|