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' => [//上课时间