Authored by 沈志敏

Merge branch 'master' of git.yoho.cn:fe/YOHOBUYWAP into feature/wxheader

@@ -53,7 +53,7 @@ class JsApiPay @@ -53,7 +53,7 @@ class JsApiPay
53 //通过code获得openid 53 //通过code获得openid
54 if (!isset($_GET['code'])) { 54 if (!isset($_GET['code'])) {
55 //触发微信返回code码 55 //触发微信返回code码
56 - $baseUrl = urlencode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 56 + $baseUrl = urlencode('http://m.yohobuy.com' . $_SERVER['REQUEST_URI']);
57 $url = $this->__CreateOauthUrlForCode($baseUrl); 57 $url = $this->__CreateOauthUrlForCode($baseUrl);
58 Header("Location: $url"); 58 Header("Location: $url");
59 exit(); 59 exit();
@@ -164,7 +164,7 @@ class JsApiPay @@ -164,7 +164,7 @@ class JsApiPay
164 $getData = $this->data; 164 $getData = $this->data;
165 $data = array(); 165 $data = array();
166 $data["appid"] = WxPayConfig::APPID; 166 $data["appid"] = WxPayConfig::APPID;
167 - $data["url"] = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; 167 + $data["url"] = "http://m.yohobuy.com" . $_SERVER['REQUEST_URI'];
168 $time = time(); 168 $time = time();
169 $data["timestamp"] = "$time"; 169 $data["timestamp"] = "$time";
170 $data["noncestr"] = "1234568"; 170 $data["noncestr"] = "1234568";