dever 7 years ago
parent
commit
b3357e1be6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tm/lib/Controller/WeixinJsSDK.class.php

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

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