正在显示
1 个修改的文件
包含
4 行增加
和
4 行删除
@@ -47,8 +47,8 @@ class User extends Api | @@ -47,8 +47,8 @@ class User extends Api | ||
47 | $param = $this->request->param(); | 47 | $param = $this->request->param(); |
48 | // 授权登录 | 48 | // 授权登录 |
49 | $ch = curl_init(); | 49 | $ch = curl_init(); |
50 | - $appid = "wx243943911c16fbfc"; | ||
51 | - $secret = "297d8f02691bd23a6fb3828a200d5f7e"; | 50 | + $appid = "wx55afbe753b153a68"; |
51 | + $secret = "428f6ca70764b0fceee65e1d4991f50a"; | ||
52 | $code = $param['code']; | 52 | $code = $param['code']; |
53 | $url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code"; | 53 | $url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code"; |
54 | curl_setopt($ch, CURLOPT_URL, $url); | 54 | curl_setopt($ch, CURLOPT_URL, $url); |
@@ -132,8 +132,8 @@ class User extends Api | @@ -132,8 +132,8 @@ class User extends Api | ||
132 | { | 132 | { |
133 | // 授权登录 | 133 | // 授权登录 |
134 | $ch = curl_init(); | 134 | $ch = curl_init(); |
135 | - $appid = "wx243943911c16fbfc"; | ||
136 | - $secret = "297d8f02691bd23a6fb3828a200d5f7e"; | 135 | + $appid = "wx55afbe753b153a68"; |
136 | + $secret = "428f6ca70764b0fceee65e1d4991f50a"; | ||
137 | $code = input('code'); | 137 | $code = input('code'); |
138 | $url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code"; | 138 | $url = "https://api.weixin.qq.com/sns/jscode2session?appid=$appid&secret=$secret&js_code=$code&grant_type=authorization_code"; |
139 | curl_setopt($ch, CURLOPT_URL, $url); | 139 | curl_setopt($ch, CURLOPT_URL, $url); |
-
请 注册 或 登录 后发表评论