|
@@ -645,7 +645,7 @@ class CloudStorageView(View):
|
|
|
if paytype == "11":
|
|
|
showtitle = "兑换成功"
|
|
|
|
|
|
- if lang == 'en':
|
|
|
+ if lang != 'cn':
|
|
|
showtitle = "Payment successful"
|
|
|
if paytype == "10":
|
|
|
showtitle = "Successful experience of cloud storage"
|
|
@@ -803,7 +803,7 @@ class CloudStorageView(View):
|
|
|
sys_msg_text_list = ['成功购买云存', 'Successful purchase of cloud storage']
|
|
|
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)
|
|
|
- if lang == 'en':
|
|
|
+ if lang != 'cn':
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/en_success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
return HttpResponseRedirect(red_url)
|
|
|
return response.json(0, signature)
|
|
@@ -811,7 +811,7 @@ class CloudStorageView(View):
|
|
|
if order_qs:
|
|
|
order_qs.update(status=10)
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
- if lang == 'en':
|
|
|
+ if lang != 'cn':
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/en_fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
return HttpResponseRedirect(red_url)
|
|
|
|
|
@@ -885,7 +885,7 @@ class CloudStorageView(View):
|
|
|
|
|
|
# return response.json(0)
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
- if lang == 'en':
|
|
|
+ if lang != 'cn':
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/en_success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
return HttpResponseRedirect(red_url)
|
|
|
except Exception as e:
|
|
@@ -894,7 +894,7 @@ class CloudStorageView(View):
|
|
|
order_qs.update(status=10)
|
|
|
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
- if lang == 'en':
|
|
|
+ if lang != 'cn':
|
|
|
red_url = "{SERVER_DOMAIN}web/paid2/en_fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
return HttpResponseRedirect(red_url)
|
|
|
|