fix 学生提交作业bug
This commit is contained in:
parent
c7614a1d0c
commit
34e07d8bd6
@ -40,7 +40,7 @@ class StudentHomeworkService
|
|||||||
|
|
||||||
$data = $request->post();
|
$data = $request->post();
|
||||||
|
|
||||||
$subject_homework = SubjectHomework::where(['teacher_schedule_time_id' => $data['subject_homework_id'], 'is_publish' => 1])->findOrEmpty();
|
$subject_homework = SubjectHomework::where(['id' => $data['subject_homework_id'], 'is_publish' => 1])->findOrEmpty();
|
||||||
if ($subject_homework->isEmpty()) {
|
if ($subject_homework->isEmpty()) {
|
||||||
throw new Exception('老师还未布置课程作业');
|
throw new Exception('老师还未布置课程作业');
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ class Task
|
|||||||
// 每天的7点50执行,注意这里省略了秒位
|
// 每天的7点50执行,注意这里省略了秒位
|
||||||
new Crontab('50 7 * * *', function(){
|
new Crontab('50 7 * * *', function(){
|
||||||
//上课前一天提醒教师、学生、家长
|
//上课前一天提醒教师、学生、家长
|
||||||
(new SendMsgCronJobService())->classBeginMsgToTeacher();
|
(new SendMsgCronJobService())->classBeginSingleMsgToTeacher();
|
||||||
});
|
});
|
||||||
|
|
||||||
// 每分钟执行一次
|
// 每分钟执行一次
|
||||||
|
Loading…
x
Reference in New Issue
Block a user