Browse Source

套餐语言9

chenshibin 4 years ago
parent
commit
0c4ab0167a
1 changed files with 8 additions and 4 deletions
  1. 8 4
      Controller/CloudStorage.py

+ 8 - 4
Controller/CloudStorage.py

@@ -648,6 +648,7 @@ class CloudStorageView(View):
         if paytype == "11":
             showtitle = "兑换成功"
 
+        wancheng = '完成'
         if lang != 'cn':
             showtitle = "Payment successful"
             if paytype == "10":
@@ -655,7 +656,10 @@ class CloudStorageView(View):
 
             if paytype == "11":
                 showtitle = "Successful exchange"
+
+            wancheng = 'complete'
         response.content = '''
+        
 <html>
 <head>
         <!--浏览器不缓存-->
@@ -719,7 +723,7 @@ class CloudStorageView(View):
     </div>
     <center class="bottom">
             <div class="bottom_div" onclick="payOKButton()"> 
-             完成
+             '''+wancheng+'''
             </div>
     </center>
     <script src="//hm.baidu.com/hm.js?eaa57ca47dacb4ad4f5a257001a3457c"></script><script>             // 点击付款成功按钮
@@ -1217,14 +1221,14 @@ class CloudStorageView(View):
 
         sys_msg_text_list = ['成功购买云存', 'Successful purchase of cloud storage']
         # return response.json(0)
-        returnurl = "{SERVER_DOMAIN}cloudstorage/payOK?{lang}".format(SERVER_DOMAIN=SERVER_DOMAIN,lang=lang)
+        returnurl = "{SERVER_DOMAIN}cloudstorage/payOK?lang={lang}".format(SERVER_DOMAIN=SERVER_DOMAIN,lang=lang)
         if pay_type == 10:
             ExperienceContextModel.objects.create(
                 experience_type=0,
                 uid=uid,
                 do_time=nowTime
             )
-            returnurl = "{SERVER_DOMAIN}cloudstorage/payOK?paytype=10&{lang}".format(SERVER_DOMAIN=SERVER_DOMAIN,lang=lang)
+            returnurl = "{SERVER_DOMAIN}cloudstorage/payOK?paytype=10&lang={lang}".format(SERVER_DOMAIN=SERVER_DOMAIN,lang=lang)
             sys_msg_text_list = ['成功体验云存', 'Successful experience of cloud storage']
 
         if pay_type == 11:
@@ -1232,7 +1236,7 @@ class CloudStorageView(View):
             update_dict['is_activate'] = 1
             update_dict['order'] = orderID
             CDKcontextModel.objects.filter(cdk=cdk).update(**update_dict)
-            returnurl = "{SERVER_DOMAIN}cloudstorage/payOK?paytype=11&{lang}".format(SERVER_DOMAIN=SERVER_DOMAIN,lang=lang)
+            returnurl = "{SERVER_DOMAIN}cloudstorage/payOK?paytype=11&lang={lang}".format(SERVER_DOMAIN=SERVER_DOMAIN,lang=lang)
             sys_msg_text_list = ['成功兑换云存', 'Successful exchange of cloud storage']