From cb5b88ab0dab1a434e04a730b5c137149370a229 Mon Sep 17 00:00:00 2001 From: Dai Date: Tue, 8 Oct 2024 21:59:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=8A=E8=AF=BE=E4=BA=86=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E6=8F=90=E9=86=92=E6=95=99=E5=B8=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/admin/app/controller/sendMsgNotifyController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/admin/app/controller/sendMsgNotifyController.php b/plugin/admin/app/controller/sendMsgNotifyController.php index 22a4a75..37a32c9 100644 --- a/plugin/admin/app/controller/sendMsgNotifyController.php +++ b/plugin/admin/app/controller/sendMsgNotifyController.php @@ -183,7 +183,7 @@ class sendMsgNotifyController extends Crud $result = (new WechatSubscriptService())->sendMsg($send_teacher_data); CronJob::create([ - 'msg_type' => SendMsgCronJobService::TEACHER_SCHEDULE_TIME_PUBLISH_STUDENT, + 'msg_type' => SendMsgCronJobService::TEACHER_SCHEDULE_TIME_PUBLISH_TEACHER, 'teacher_id' => $teacher_schedule_time->teacher_id, 'subject_id' => $teacher_schedule_time->subject_id, 'student_id' => '', @@ -194,7 +194,7 @@ class sendMsgNotifyController extends Crud 'end_time' => $teacher_schedule_time->end_time, 'en_start_time' => $teacher_schedule_time->en_start_time, 'en_end_time' => $teacher_schedule_time->en_end_time, - 'send_role' => 'student', + 'send_role' => 'teacher', 'send_data' => json_encode($send_teacher_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'msg_info' => json_encode($teacher_schedule_time->toArray(), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'send_result' => $result['code'] == ResponseCode::SUCCESS ? 1 : 0,