diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index 08a06ab..9376f6d 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -33,6 +33,8 @@ class SendMsgCronJobService 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_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 ADMIN_NOTIFY_STUDENT_SCHEDULE_TIME = 'admin_notify_student_schedule_time'; const ADMIN_NOTIFY_TEACHER_SUBMIT_FREE_TIME = 'admin_notify_teacher_submit_free_time'; @@ -1063,7 +1065,7 @@ class SendMsgCronJobService //@todo:写入日志中 CronJob::create([ - 'msg_type' => self::SUBJECT_VERSION_UPLOAD_NOTIFY_STUDENT, + 'msg_type' => self::SUBJECT_REPORT_UPLOAD_NOTIFY_STUDENT, 'teacher_id' => $subject_homework->teacher_id, 'subject_id' => $subject_homework->subject_id, 'student_id' => '', @@ -1117,7 +1119,7 @@ class SendMsgCronJobService //@todo:写入日志中 CronJob::create([ - 'msg_type' => self::SUBJECT_VERSION_UPLOAD_NOTIFY_PARENT, + 'msg_type' => self::SUBJECT_REPORT_UPLOAD_NOTIFY_PARENT, 'teacher_id' => $subject_homework->teacher_id, 'subject_id' => $subject_homework->subject_id, 'student_id' => '', diff --git a/plugin/admin/app/view/cron-job/index.html b/plugin/admin/app/view/cron-job/index.html index ebc6a1e..7dd2546 100644 --- a/plugin/admin/app/view/cron-job/index.html +++ b/plugin/admin/app/view/cron-job/index.html @@ -227,6 +227,22 @@ 本地时间:{{d.msg_info.date}} {{d.msg_info.en_time}} + {{# }else if(d.msg_type == 'subject_report_upload_notify_student'){ }} +
+ 教师:{{d.msg_info.subject_homework.teacher_name}} + 课程:{{d.msg_info.subject_homework.english_name}} + 本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}} + 本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}} + 学生:{{d.msg_info.student.student_name}} +
+ {{# }else if(d.msg_type == 'subject_report_upload_notify_parent'){ }} +
+ 教师:{{d.msg_info.subject_homework.teacher_name}} + 课程:{{d.msg_info.subject_homework.english_name}} + 本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}} + 本地时间:{{d.msg_info.subject_homework.date}} {{d.msg_info.subject_homework.en_time}} + 家长:{{d.msg_info.parent.account}} +
{{# }else if(d.msg_type == 'subject_version_upload_notify_student'){ }}
教师:{{d.msg_info.subject_homework.teacher_name}}