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