From b17d8c028135670eca6513e714841f4698542814 Mon Sep 17 00:00:00 2001 From: Dai Date: Mon, 7 Oct 2024 23:35:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E5=AE=9A=E6=97=B6=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/SendMsgCronJobService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index 3eab20b..45dc67a 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -641,8 +641,10 @@ class SendMsgCronJobService throw new Exception('未找到课程分配的学生'); } + var_dump($item->toArray()); + $send_teacher_data = [ - 'touser' => $item['teacherArr']['openid'], + 'touser' => $item['teacherAttr']['openid'], 'template_id' => 'yYw0jnlhjnq4AJ_CAlAghgGyV0bvbVHG-eV8TNC3REI', 'data' => [ 'thing8' => [//课程名称 @@ -694,7 +696,7 @@ class SendMsgCronJobService foreach ($student_info as $student) { //通知学生 $send_teacher_data = [ - 'touser' => $student['openid']->openid, + 'touser' => $student['openid'], 'template_id' => 'yYw0jnlhjnq4AJ_CAlAghgGyV0bvbVHG-eV8TNC3REI', 'data' => [ 'thing8' => [//课程名称