rabin il y a 2 ans
Parent
commit
6d942505da
2 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 7 1
      data/payback/payback.html
  2. 1 1
      learn/active/src/Api.php

+ 7 - 1
data/payback/payback.html

@@ -62,7 +62,13 @@ src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
   }
 
   function jumpOut() {
-      var mchData = {action: 'jumpOut', jumpOutUrl: "http://daili.uat.churenyiliao.com/"}
+      var url = location.href;
+      if (url.indexOf('uat.') != -1) {
+          var jump = 'http://daili.uat.churenyiliao.com/';
+      } else {
+          var jump = 'https://daili.churenyiliao.com/';
+      }
+      var mchData = {action: 'jumpOut', jumpOutUrl: jump}
       var postData = JSON.stringify(mchData)
       parent.postMessage(postData, 'https://payapp.weixin.qq.com')
   }

+ 1 - 1
learn/active/src/Api.php

@@ -46,7 +46,7 @@ Class Api extends Core {
 		if (strstr($url, 'uat.')) {
 			$refer = 'http://guanli.uat.churenyiliao.com/';
 		}
-		$refer .= 'data/payback/payback.html';
+		$refer .= 'data/payback/active.html';
 		if($ids){
 			$info = Dever::db('active/order')->find($ids);
 			$active = Dever::db('active/info')->find($info['active_id']);