正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
| @@ -30,11 +30,9 @@ class Login extends Base | @@ -30,11 +30,9 @@ class Login extends Base | ||
| 30 | $encryptedData = $post['encryptedData'];//I('post.encryptedData'); | 30 | $encryptedData = $post['encryptedData'];//I('post.encryptedData'); |
| 31 | $iv = $post['iv'];//I('post.iv'); | 31 | $iv = $post['iv'];//I('post.iv'); |
| 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 | - print_r($url);return; | ||
| 34 | file_put_contents("1.txt","8-1. ".($code)."\r\n",FILE_APPEND); | 33 | file_put_contents("1.txt","8-1. ".($code)."\r\n",FILE_APPEND); |
| 35 | $result = http_request($url); | 34 | $result = http_request($url); |
| 36 | $res = json_decode($result, true); | 35 | $res = json_decode($result, true); |
| 37 | - print_r($res);return; | ||
| 38 | if (!$res) { | 36 | if (!$res) { |
| 39 | $this->error("授权失败,请尝试重新授权"); | 37 | $this->error("授权失败,请尝试重新授权"); |
| 40 | //$res = json_decode(send_post($url), true); | 38 | //$res = json_decode(send_post($url), true); |
-
请 注册 或 登录 后发表评论