| xqd
@@ -147,7 +147,7 @@ class TeacherController extends Controller
|
|
|
$data['password'] = bcrypt($request->input('password', 123456));
|
|
|
}
|
|
|
|
|
|
- $res = $this->model->where('id', $request->input('id'))->update($data['password']);
|
|
|
+ $res = $this->model->where('id', $request->input('id'))->update($data);
|
|
|
if(!$res) {
|
|
|
return $this->showWarning('数据库保存失败!');
|
|
|
}
|