This commit is contained in:
Anyon 2018-02-05 10:13:21 +08:00
commit 84bee4a600

View File

@ -47,7 +47,7 @@ class Oauth extends BasicWeChat
$appid = $this->config->get('appid');
$appsecret = $this->config->get('appsecret');
$code = isset($_GET['code']) ? $_GET['code'] : '';
$url = " https://api.weixin.qq.com/sns/oauth2/access_token?appid={$appid}&secret={$appsecret}&code={$code}&grant_type=authorization_code";
$url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid={$appid}&secret={$appsecret}&code={$code}&grant_type=authorization_code";
return $this->httpGetForJson($url);
}
@ -90,4 +90,4 @@ class Oauth extends BasicWeChat
return $this->httpGetForJson($url);
}
}
}