fix bug
This commit is contained in:
parent
30ddc09d21
commit
0df8535963
@ -284,6 +284,10 @@ class SubjectHomeworkController extends Crud
|
|||||||
$subject_homework->save([
|
$subject_homework->save([
|
||||||
'is_publish' => $request->post('is_publish')
|
'is_publish' => $request->post('is_publish')
|
||||||
]);
|
]);
|
||||||
|
if($subject_homework->subject_file_version_is_publish){
|
||||||
|
//课程作业发布之后通知学生
|
||||||
|
(new SendMsgCronJobService())->uploadVersionSubjectHomeworkNotifyStudent($subject_homework->id);
|
||||||
|
}
|
||||||
return json([
|
return json([
|
||||||
'code' => ResponseCode::WEB_API_SUCCESS,
|
'code' => ResponseCode::WEB_API_SUCCESS,
|
||||||
'msg' => 'success'
|
'msg' => 'success'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user