...
|
...
|
@@ -1720,4 +1720,23 @@ class Car extends Base |
|
|
$this->success("取消成功");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 更新用户信息
|
|
|
* @return void
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function renewuser(){
|
|
|
$user_id=$this->auth->id;
|
|
|
$return_data = $this->auth->getUserinfo();
|
|
|
//判断是否是司机
|
|
|
$driver=Db::name("driver")->where("user_id",$user_id)->find();
|
|
|
$return_data['driver_type']=0;
|
|
|
if($driver){
|
|
|
$return_data['driver_type']=1;
|
|
|
}
|
|
|
$this->success('查询用户信息成功',$return_data);
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|