作者 王智

daima

... ... @@ -47,8 +47,8 @@ class User extends Api
$param = $this->request->param();
// 授权登录
$ch = curl_init();
$appid = "wx243943911c16fbfc";
$secret = "297d8f02691bd23a6fb3828a200d5f7e";
$appid = "wx55afbe753b153a68";
$secret = "428f6ca70764b0fceee65e1d4991f50a";
$code = $param['code'];
$url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code";
curl_setopt($ch, CURLOPT_URL, $url);
... ... @@ -132,8 +132,8 @@ class User extends Api
{
// 授权登录
$ch = curl_init();
$appid = "wx243943911c16fbfc";
$secret = "297d8f02691bd23a6fb3828a200d5f7e";
$appid = "wx55afbe753b153a68";
$secret = "428f6ca70764b0fceee65e1d4991f50a";
$code = input('code');
$url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code";
curl_setopt($ch, CURLOPT_URL, $url);
... ...