fix 上传课程文件提醒家长、学生

This commit is contained in:
Dai 2024-10-07 23:20:46 +08:00
parent 04e567ce78
commit 35f2f50e31
2 changed files with 20 additions and 2 deletions

View File

@ -33,6 +33,8 @@ class SendMsgCronJobService
const SUBJECT_UPLOAD_NOTIFY_ADMIN = 'subject_upload_notify_admin'; const SUBJECT_UPLOAD_NOTIFY_ADMIN = 'subject_upload_notify_admin';
const SUBJECT_VERSION_UPLOAD_NOTIFY_STUDENT = 'subject_version_upload_notify_student'; const SUBJECT_VERSION_UPLOAD_NOTIFY_STUDENT = 'subject_version_upload_notify_student';
const SUBJECT_VERSION_UPLOAD_NOTIFY_PARENT = 'subject_version_upload_notify_parent'; const SUBJECT_VERSION_UPLOAD_NOTIFY_PARENT = 'subject_version_upload_notify_parent';
const SUBJECT_REPORT_UPLOAD_NOTIFY_STUDENT = 'subject_report_upload_notify_student';
const SUBJECT_REPORT_UPLOAD_NOTIFY_PARENT = 'subject_report_upload_notify_parent';
const STUDENT_UPLOAD_HOMEWORK_NOTIFY_TEACHER = 'student_upload_homework_notify_teacher'; const STUDENT_UPLOAD_HOMEWORK_NOTIFY_TEACHER = 'student_upload_homework_notify_teacher';
const ADMIN_NOTIFY_STUDENT_SCHEDULE_TIME = 'admin_notify_student_schedule_time'; const ADMIN_NOTIFY_STUDENT_SCHEDULE_TIME = 'admin_notify_student_schedule_time';
const ADMIN_NOTIFY_TEACHER_SUBMIT_FREE_TIME = 'admin_notify_teacher_submit_free_time'; const ADMIN_NOTIFY_TEACHER_SUBMIT_FREE_TIME = 'admin_notify_teacher_submit_free_time';
@ -1063,7 +1065,7 @@ class SendMsgCronJobService
//@todo:写入日志中 //@todo:写入日志中
CronJob::create([ CronJob::create([
'msg_type' => self::SUBJECT_VERSION_UPLOAD_NOTIFY_STUDENT, 'msg_type' => self::SUBJECT_REPORT_UPLOAD_NOTIFY_STUDENT,
'teacher_id' => $subject_homework->teacher_id, 'teacher_id' => $subject_homework->teacher_id,
'subject_id' => $subject_homework->subject_id, 'subject_id' => $subject_homework->subject_id,
'student_id' => '', 'student_id' => '',
@ -1117,7 +1119,7 @@ class SendMsgCronJobService
//@todo:写入日志中 //@todo:写入日志中
CronJob::create([ CronJob::create([
'msg_type' => self::SUBJECT_VERSION_UPLOAD_NOTIFY_PARENT, 'msg_type' => self::SUBJECT_REPORT_UPLOAD_NOTIFY_PARENT,
'teacher_id' => $subject_homework->teacher_id, 'teacher_id' => $subject_homework->teacher_id,
'subject_id' => $subject_homework->subject_id, 'subject_id' => $subject_homework->subject_id,
'student_id' => '', 'student_id' => '',

View File

@ -227,6 +227,22 @@
<span>本地时间:{{d.msg_info.date}} {{d.msg_info.en_time}}</span> <span>本地时间:{{d.msg_info.date}} {{d.msg_info.en_time}}</span>
</div> </div>
<!-- <span class="layui-badge layui-bg-green">课程作业上传提醒管理员</span>--> <!-- <span class="layui-badge layui-bg-green">课程作业上传提醒管理员</span>-->
{{# }else if(d.msg_type == 'subject_report_upload_notify_student'){ }}
<div>
<span>教师:{{d.msg_info.subject_homework.teacher_name}}</span>
<span>课程:{{d.msg_info.subject_homework.english_name}}</span>
<span>本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}}</span>
<span>本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}}</span>
<span>学生:{{d.msg_info.student.student_name}}</span>
</div>
{{# }else if(d.msg_type == 'subject_report_upload_notify_parent'){ }}
<div>
<span>教师:{{d.msg_info.subject_homework.teacher_name}}</span>
<span>课程:{{d.msg_info.subject_homework.english_name}}</span>
<span>本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}}</span>
<span>本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}}</span>
<span>家长:{{d.msg_info.parent.account}}</span>
</div>
{{# }else if(d.msg_type == 'subject_version_upload_notify_student'){ }} {{# }else if(d.msg_type == 'subject_version_upload_notify_student'){ }}
<div> <div>
<span>教师:{{d.msg_info.subject_homework.teacher_name}}</span> <span>教师:{{d.msg_info.subject_homework.teacher_name}}</span>