|
@@ -85,7 +85,7 @@ class CourseController extends Controller
|
|
return $this->showWarning('数据库保存失败!');
|
|
return $this->showWarning('数据库保存失败!');
|
|
}
|
|
}
|
|
|
|
|
|
- $res->updateStudentCourseTeachers($request->input('teachers'));
|
|
|
|
|
|
+ $res->updateStudentCourseTeachers($request->input('teachers'), $data['assign_teacher']);
|
|
|
|
|
|
return $this->showMessage('操作成功', $this->redirect_index . '?student_id=' . $res->student_id);
|
|
return $this->showMessage('操作成功', $this->redirect_index . '?student_id=' . $res->student_id);
|
|
}
|
|
}
|
|
@@ -122,7 +122,7 @@ class CourseController extends Controller
|
|
return $this->showWarning('数据库保存失败!');
|
|
return $this->showWarning('数据库保存失败!');
|
|
}
|
|
}
|
|
if(!empty($item)) {
|
|
if(!empty($item)) {
|
|
- $item->updateStudentCourseTeachers($request->input('teachers'));
|
|
|
|
|
|
+ $item->updateStudentCourseTeachers($request->input('teachers'), $data['assign_teacher']);
|
|
}
|
|
}
|
|
|
|
|
|
return $this->showMessage('操作成功', $this->redirect_index . '?student_id=' . $item->student_id);
|
|
return $this->showMessage('操作成功', $this->redirect_index . '?student_id=' . $item->student_id);
|