fix 发布课程文件后通知学生和家长
This commit is contained in:
parent
7efa0c6151
commit
0e766c84f6
@ -681,9 +681,9 @@ class SendMsgCronJobService
|
||||
|
||||
$send_teacher_data = [
|
||||
'touser' => $student_schedule->student_openid,
|
||||
'template_id' => 'IYIMurENbyxkQ_axIsrkjMJNb8i1AIX4qRgVUEzQX6I',
|
||||
'template_id' => 'ng-vuuY_hHM3N2fR3VCGdjGldOrwmzVVQzebRgkW4uY',
|
||||
'data' => [
|
||||
'thing1' => [//所属课程
|
||||
'thing6' => [//课程名称
|
||||
'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
|
||||
'color' => '#000000'
|
||||
],
|
||||
@ -691,11 +691,11 @@ class SendMsgCronJobService
|
||||
'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
|
||||
'color' => '#000000'
|
||||
],
|
||||
'thing3' => [//批改老师
|
||||
'thing5' => [//批改老师
|
||||
'value' => $student_schedule->teacher_name,
|
||||
'color' => '#000000'
|
||||
],
|
||||
'time8' => [//机构名称
|
||||
'time3' => [//机构名称
|
||||
'value' => $next_time,
|
||||
'color' => '#000000'
|
||||
]
|
||||
@ -735,9 +735,9 @@ class SendMsgCronJobService
|
||||
if (!$parent->isEmpty()) {
|
||||
$send_teacher_data = [
|
||||
'touser' => $parent->openid,
|
||||
'template_id' => 'IYIMurENbyxkQ_axIsrkjMJNb8i1AIX4qRgVUEzQX6I',
|
||||
'template_id' => 'ng-vuuY_hHM3N2fR3VCGdjGldOrwmzVVQzebRgkW4uY',
|
||||
'data' => [
|
||||
'thing1' => [//所属课程
|
||||
'thing6' => [//课程名称
|
||||
'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
|
||||
'color' => '#000000'
|
||||
],
|
||||
@ -745,11 +745,11 @@ class SendMsgCronJobService
|
||||
'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
|
||||
'color' => '#000000'
|
||||
],
|
||||
'thing3' => [//批改老师
|
||||
'thing5' => [//批改老师
|
||||
'value' => $student_schedule->teacher_name,
|
||||
'color' => '#000000'
|
||||
],
|
||||
'time8' => [//机构名称
|
||||
'time3' => [//机构名称
|
||||
'value' => $next_time,
|
||||
'color' => '#000000'
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user