正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -32,6 +32,7 @@ class Login extends Base | @@ -32,6 +32,7 @@ class Login extends Base | ||
32 | $url = "https://api.weixin.qq.com/sns/jscode2session?appid=" . $appid . "&secret=" . $AppSecret . "&js_code=" . $code . "&grant_type=authorization_code"; | 32 | $url = "https://api.weixin.qq.com/sns/jscode2session?appid=" . $appid . "&secret=" . $AppSecret . "&js_code=" . $code . "&grant_type=authorization_code"; |
33 | $result = http_request($url); | 33 | $result = http_request($url); |
34 | $res = json_decode($result, true); | 34 | $res = json_decode($result, true); |
35 | + print_r($res);return; | ||
35 | if (!$res) { | 36 | if (!$res) { |
36 | $this->error("授权失败,请尝试重新授权"); | 37 | $this->error("授权失败,请尝试重新授权"); |
37 | //$res = json_decode(send_post($url), true); | 38 | //$res = json_decode(send_post($url), true); |
-
请 注册 或 登录 后发表评论