|
@@ -803,12 +803,16 @@ class CloudStorageView(View):
|
|
sys_msg_text_list = ['成功购买云存', 'Successful purchase of cloud storage']
|
|
sys_msg_text_list = ['成功购买云存', 'Successful purchase of cloud storage']
|
|
self.do_vod_msg_Notice(UID, channel, userid, lang, sys_msg_text_list)
|
|
self.do_vod_msg_Notice(UID, channel, userid, lang, sys_msg_text_list)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
|
+ if lang == 'en':
|
|
|
|
+ red_url = "{SERVER_DOMAIN}web/paid2/en_success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
return HttpResponseRedirect(red_url)
|
|
return HttpResponseRedirect(red_url)
|
|
return response.json(0, signature)
|
|
return response.json(0, signature)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
if order_qs:
|
|
if order_qs:
|
|
order_qs.update(status=10)
|
|
order_qs.update(status=10)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
|
+ if lang == 'en':
|
|
|
|
+ red_url = "{SERVER_DOMAIN}web/paid2/en_fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
return HttpResponseRedirect(red_url)
|
|
return HttpResponseRedirect(red_url)
|
|
|
|
|
|
def do_pay_by_paypal_callback(self, request_dict, response):
|
|
def do_pay_by_paypal_callback(self, request_dict, response):
|
|
@@ -881,6 +885,8 @@ class CloudStorageView(View):
|
|
|
|
|
|
# return response.json(0)
|
|
# return response.json(0)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
|
+ if lang == 'en':
|
|
|
|
+ red_url = "{SERVER_DOMAIN}web/paid2/en_success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
return HttpResponseRedirect(red_url)
|
|
return HttpResponseRedirect(red_url)
|
|
except Exception as e:
|
|
except Exception as e:
|
|
print(repr(e))
|
|
print(repr(e))
|
|
@@ -888,6 +894,8 @@ class CloudStorageView(View):
|
|
order_qs.update(status=10)
|
|
order_qs.update(status=10)
|
|
|
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
|
+ if lang == 'en':
|
|
|
|
+ red_url = "{SERVER_DOMAIN}web/paid2/en_fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
return HttpResponseRedirect(red_url)
|
|
return HttpResponseRedirect(red_url)
|
|
|
|
|
|
def do_pay_by_wechat_callback(self, request, response):
|
|
def do_pay_by_wechat_callback(self, request, response):
|