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