|
@@ -114,6 +114,35 @@ class CloudVodView(View):
|
|
|
return response.json(414)
|
|
|
|
|
|
def do_pay_error(self):
|
|
|
+ response = HttpResponse()
|
|
|
+ response.content = '''
|
|
|
+ <!DOCTYPE html>
|
|
|
+ <html lang="en">
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
|
|
+ <title>msg</title>
|
|
|
+ </head>
|
|
|
+ <body>
|
|
|
+ <div class="content"
|
|
|
+ style="text-align:center;overflow: hidden;padding:20% 10% 10% 10%;margin:0 10%;background-color: #fff;box-shadow:0 4px 20px rgba(0,0,0,0.1);word-break: break-all;min-height: 300px">
|
|
|
+ <span style="padding: 10px 20px; background-color: #EB6F5A;border-radius:4px;color:#fff;"
|
|
|
+ onclick="payOKButton()">付款失败</span>
|
|
|
+ </div>
|
|
|
+ </body>
|
|
|
+ <script type="text/javascript">
|
|
|
+ function payOKButton() {
|
|
|
+ window.location = 'app://payError?account=13011112222&password=123456'
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ </html>
|
|
|
+ '''
|
|
|
+ return response
|
|
|
+
|
|
|
+
|
|
|
+ def d2o_pay_error(self):
|
|
|
response = HttpResponse()
|
|
|
response.status_code = 200
|
|
|
# response.content = '''
|
|
@@ -206,6 +235,34 @@ class CloudVodView(View):
|
|
|
return response
|
|
|
|
|
|
def do_pay_ok(self):
|
|
|
+ response = HttpResponse()
|
|
|
+ response.content = '''
|
|
|
+ <!DOCTYPE html>
|
|
|
+<html lang="en">
|
|
|
+<head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta name="viewport"
|
|
|
+ content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
|
|
|
+ <title>msg</title>
|
|
|
+</head>
|
|
|
+<body>
|
|
|
+<div class="content"
|
|
|
+ style="text-align:center;overflow: hidden;padding:20% 10% 10% 10%;margin:0 10%;background-color: #fff;box-shadow:0 4px 20px rgba(0,0,0,0.1);word-break: break-all;min-height: 300px">
|
|
|
+ <span style="padding: 10px 20px; background-color: #EB6F5A;border-radius:4px;color:#fff;"
|
|
|
+ onclick="payOKButton()">付款成功</span>
|
|
|
+</div>
|
|
|
+</body>
|
|
|
+<script type="text/javascript">
|
|
|
+ function payOKButton() {
|
|
|
+ window.location = 'app://payOK?account=13011112222&password=123456'
|
|
|
+ }
|
|
|
+</script>
|
|
|
+</html>
|
|
|
+ '''
|
|
|
+ return response
|
|
|
+
|
|
|
+ def d2o_pay_ok(self):
|
|
|
response = HttpResponse()
|
|
|
# response.status_code = 200
|
|
|
# response.content = '''
|