|
@@ -1116,6 +1116,7 @@ class CloudVodView(View):
|
|
|
|
|
|
def do_pay_status(self, request_dict, userID, response):
|
|
|
orderID = request_dict.get('orderID', None)
|
|
|
+ lang = request_dict.get('lang', None)
|
|
|
om_qs = Order_Model.objects.filter(orderID=orderID).values('status')
|
|
|
# response = HttpResponse()
|
|
|
# success_pay_content = '''
|
|
@@ -1136,6 +1137,19 @@ class CloudVodView(View):
|
|
|
|
|
|
url = "{SERVER_DOMAIN}web/paid2/fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
|
|
|
+ if lang !='cn':
|
|
|
+ status = 0
|
|
|
+ url = "{SERVER_DOMAIN}web/paid2/en_fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
+
|
|
|
+ if om_qs.exists():
|
|
|
+ status = om_qs[0]['status']
|
|
|
+ if status == 1:
|
|
|
+
|
|
|
+ url = "{SERVER_DOMAIN}web/paid2/en_success.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
+ else:
|
|
|
+
|
|
|
+ url = "{SERVER_DOMAIN}web/paid2/en_fail.html".format(SERVER_DOMAIN=SERVER_DOMAIN)
|
|
|
+
|
|
|
res = {'status': status, 'url': url}
|
|
|
return response.json(0, res)
|
|
|
|