作者 郭盛
1 个管道 的构建 通过 耗费 0 秒

修改登录

@@ -79,7 +79,7 @@ class User extends Api @@ -79,7 +79,7 @@ class User extends Api
79 $ret = $this->auth->login($result); 79 $ret = $this->auth->login($result);
80 if ($ret) { 80 if ($ret) {
81 $data = $this->auth->getUserinfo(); 81 $data = $this->auth->getUserinfo();
82 - Db::name('user')->where('id',$data['data']['id'])->update(['type'=>$raw_data['type']]); 82 + Db::name('user')->where('id',$data['id'])->update(['type'=>$raw_data['type']]);
83 $this->success('登录成功', $data); 83 $this->success('登录成功', $data);
84 }else { 84 }else {
85 $this->error($this->auth->getError()); 85 $this->error($this->auth->getError());