fix 定时任务报错
This commit is contained in:
parent
a47384189c
commit
b17d8c0281
@ -641,8 +641,10 @@ class SendMsgCronJobService
|
|||||||
throw new Exception('未找到课程分配的学生');
|
throw new Exception('未找到课程分配的学生');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var_dump($item->toArray());
|
||||||
|
|
||||||
$send_teacher_data = [
|
$send_teacher_data = [
|
||||||
'touser' => $item['teacherArr']['openid'],
|
'touser' => $item['teacherAttr']['openid'],
|
||||||
'template_id' => 'yYw0jnlhjnq4AJ_CAlAghgGyV0bvbVHG-eV8TNC3REI',
|
'template_id' => 'yYw0jnlhjnq4AJ_CAlAghgGyV0bvbVHG-eV8TNC3REI',
|
||||||
'data' => [
|
'data' => [
|
||||||
'thing8' => [//课程名称
|
'thing8' => [//课程名称
|
||||||
@ -694,7 +696,7 @@ class SendMsgCronJobService
|
|||||||
foreach ($student_info as $student) {
|
foreach ($student_info as $student) {
|
||||||
//通知学生
|
//通知学生
|
||||||
$send_teacher_data = [
|
$send_teacher_data = [
|
||||||
'touser' => $student['openid']->openid,
|
'touser' => $student['openid'],
|
||||||
'template_id' => 'yYw0jnlhjnq4AJ_CAlAghgGyV0bvbVHG-eV8TNC3REI',
|
'template_id' => 'yYw0jnlhjnq4AJ_CAlAghgGyV0bvbVHG-eV8TNC3REI',
|
||||||
'data' => [
|
'data' => [
|
||||||
'thing8' => [//课程名称
|
'thing8' => [//课程名称
|
||||||
|
Loading…
x
Reference in New Issue
Block a user