From cadb5957137af3150879ed02783e85dbbb008ac7 Mon Sep 17 00:00:00 2001 From: Dai Date: Tue, 8 Oct 2024 21:58:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=B8=8A=E8=AF=BE=E9=80=9A=E7=9F=A5?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/admin/app/controller/sendMsgNotifyController.php b/plugin/admin/app/controller/sendMsgNotifyController.php index b32f720..22a4a75 100644 --- a/plugin/admin/app/controller/sendMsgNotifyController.php +++ b/plugin/admin/app/controller/sendMsgNotifyController.php @@ -151,10 +151,11 @@ class sendMsgNotifyController extends Crud ]); } + if (isset($teacher_schedule_time['teacherAttr']) && !empty($teacher_schedule_time['teacherAttr']['openid'])) { //发送给教师 $send_teacher_data = [ - 'touser' => $student['openid'], + 'touser' => $teacher_schedule_time['teacherAttr']['openid'], 'template_id' => 'gTtXWz35mjbtbOZdq6uNBIqy2_W-gu7F4H6s5N-vNAI', 'data' => [ 'time2' => [//上课时间