dever 7 yıl önce
ebeveyn
işleme
3b1526982c

+ 1 - 1
kissy/public/share/mshare.js

@@ -156,7 +156,7 @@ MShare.prototype = {
                 var d = data.msg;
                 //alert(d.appId)
                 wx.config({
-                    debug:true,
+                    //debug:true,
                     appId: d.appId,
                     timestamp: d.timestamp,
                     nonceStr: d.nonceStr,

+ 1 - 1
tm/lib/Controller/WeixinJsSDK.class.php

@@ -41,7 +41,7 @@ class WeixinJsSDK extends Controller {
 		
 		$jsapiTicket = $this->getJsApiTicket ();
 		if ($url == null) {
-			$url = "http://$_SERVER[SERVER_NAME]$_SERVER[REQUEST_URI]";
+			$url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
 		} else {
 			$url = htmlspecialchars_decode ( $url );
 		}

+ 1 - 1
tm/template_dir/header.html

@@ -36,5 +36,5 @@
 </script>
 <script src="<{$web_cfg.cdn}>/public/share/zepto.min.js"></script>
 <script src="<{$web_cfg.cdn}>/public/share/jweixin.js?2"></script>
-<script src="<{$web_cfg.cdn}>/public/share/mshare.js?15"></script>
+<script src="<{$web_cfg.cdn}>/public/share/mshare.js?16"></script>
 <body id="body">