rabin 2 years ago
parent
commit
77ed55f426
2 changed files with 27 additions and 1 deletions
  1. 26 0
      data/goldPlan.html
  2. 1 1
      service/agent/lib/Order.php

+ 26 - 0
data/goldPlan.html

@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="UTF-8">
+    <title>GOLD PLAN</title>
+    <script type="text/javascript" charset="UTF-8"
+            src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
+</head>
+<body>
+GOLD PLAN<br>
+<a onclick="jumpOut()" href="javascript:;">JUMP OUT</a>
+</body>
+<script type="text/javascript">
+    window.onload = function () {
+        var mchData = {action: 'onIframeReady', displayStyle: 'SHOW_CUSTOM_PAGE'}
+        var postData = JSON.stringify(mchData)
+        parent.postMessage(postData, 'https://payapp.weixin.qq.com')
+    }
+
+    function jumpOut() {
+        var mchData = {action: 'jumpOut', jumpOutUrl: "http://daili.uat.churenyiliao.com/"}
+        var postData = JSON.stringify(mchData)
+        parent.postMessage(postData, 'https://payapp.weixin.qq.com')
+    }
+</script>
+</html>

+ 1 - 1
service/agent/lib/Order.php

@@ -309,7 +309,7 @@ class Order
             'product_id' => $data['id'],
             'order_id' => $data['order_num'],
             'h5' => 1,
-            'refer' => Dever::input('refer', 'http://daili.uat.churenyiliao.com/pages/assets/singlepage/singlepage?id=yinsizhengce'),
+            'refer' => Dever::input('refer', 'http://guanli.uat.churenyiliao.com/data/goldPlan.html'),
         );
 
         $result = Dever::load('pay/api.pay', $param);