feat : driver
This commit is contained in:
@@ -96,7 +96,8 @@ class EmployeeService extends BaseService
|
||||
$model->status = $this->request->input('status', 1);
|
||||
$model->avatar = $this->request->input('avatar',0);
|
||||
$model->role_id = $this->request->input('role_id', 0);
|
||||
$model->section_id = $this->request->input('section_id', 0);
|
||||
$model->city_id = $this->request->input('city_id', 0);
|
||||
// $model->section_id = $this->request->input('section_id', 0);
|
||||
|
||||
if (!$model->save()) throw new ErrException('账号添加失败');
|
||||
|
||||
@@ -128,6 +129,7 @@ class EmployeeService extends BaseService
|
||||
$info->status = $this->request->input('status', 1);
|
||||
$info->avatar = $this->request->input('avatar',0);
|
||||
$info->role_id = $this->request->input('role_id', 0);
|
||||
$info->city_id = $this->request->input('city_id', 0);
|
||||
$info->section_id = $this->request->input('section_id', 0);
|
||||
|
||||
if (!$info->save()) throw new ErrException('账号修改失败');
|
||||
|
||||
Reference in New Issue
Block a user