正在显示
2 个修改的文件
包含
2 行增加
和
1 行删除
@@ -11,6 +11,7 @@ use think\Exception; | @@ -11,6 +11,7 @@ use think\Exception; | ||
11 | */ | 11 | */ |
12 | class Client extends Api | 12 | class Client extends Api |
13 | { | 13 | { |
14 | + protected $noNeedLogin = ['']; | ||
14 | protected $noNeedRight = ['*']; | 15 | protected $noNeedRight = ['*']; |
15 | protected $postParam; | 16 | protected $postParam; |
16 | protected $store_id; | 17 | protected $store_id; |
@@ -200,7 +200,7 @@ class Wechat extends Api | @@ -200,7 +200,7 @@ class Wechat extends Api | ||
200 | if($user_id !=0){ | 200 | if($user_id !=0){ |
201 | 201 | ||
202 | $data['token'] = $this->auth->getToken(); | 202 | $data['token'] = $this->auth->getToken(); |
203 | - $data['user_info'] = $user; | 203 | + $data['user_info'] =$this->auth->getUserinfo(); |
204 | $this->success('完成',$data); | 204 | $this->success('完成',$data); |
205 | }else{ | 205 | }else{ |
206 | $this->error('code处理失败'); | 206 | $this->error('code处理失败'); |
-
请 注册 或 登录 后发表评论