Silent 6 년 전
부모
커밋
8f97a896e4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Admin/TeacherController.php

+ 1 - 1
app/Http/Controllers/Admin/TeacherController.php

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