diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index 236cfc9..40e1909 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -1035,7 +1035,7 @@ class SendMsgCronJobService $send_teacher_data = [ 'touser' => $student_schedule->student_openid, - 'template_id' => 'ng-vuuY_hHM3N2fR3VCGdjGldOrwmzVVQzebRgkW4uY', + 'template_id' => 'bhnq2bLVoTx1-6dKL065JPXWTm6AVGsUmvuW8kEA1VU', 'data' => [ 'thing6' => [//课程名称 'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..', @@ -1045,12 +1045,12 @@ class SendMsgCronJobService 'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..', 'color' => '#000000' ], - 'thing5' => [//批改老师 - 'value' => $student_schedule->teacher_name, - 'color' => '#000000' - ], - 'time3' => [//机构名称 - 'value' => $next_time, +// 'thing5' => [//批改老师 +// 'value' => $student_schedule->teacher_name, +// 'color' => '#000000' +// ], + 'time4' => [//上传时间 + 'value' => $subject_homework->created_at, 'color' => '#000000' ] ], @@ -1089,7 +1089,7 @@ class SendMsgCronJobService if (!$parent->isEmpty()) { $send_teacher_data = [ 'touser' => $parent->openid, - 'template_id' => 'ng-vuuY_hHM3N2fR3VCGdjGldOrwmzVVQzebRgkW4uY', + 'template_id' => 'bhnq2bLVoTx1-6dKL065JPXWTm6AVGsUmvuW8kEA1VU', 'data' => [ 'thing6' => [//课程名称 'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..', @@ -1099,12 +1099,12 @@ class SendMsgCronJobService 'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..', 'color' => '#000000' ], - 'thing5' => [//批改老师 - 'value' => $student_schedule->teacher_name, - 'color' => '#000000' - ], - 'time3' => [//机构名称 - 'value' => $next_time, +// 'thing5' => [//批改老师 +// 'value' => $student_schedule->teacher_name, +// 'color' => '#000000' +// ], + 'time4' => [//上传时间 + 'value' => $subject_homework->created_at, 'color' => '#000000' ] ], @@ -1162,6 +1162,11 @@ class SendMsgCronJobService $subject_homework = SubjectHomework::where(['id' => $subject_homework_id])->findOrEmpty(); //查找该课程作业的课程的学生 $student_schedule = StudentSchedule::where(['teacher_schedule_time_id' => $subject_homework->teacher_schedule_time_id])->with(['student', 'subject', 'teacher'])->findOrEmpty(); + + print '
';
+            print_r($student_schedule->toArray());
+            die;
+
 //
 //            $student_homework = StudentHomework::where(['id' => $student_homework_id])->with(['teacher', 'subject'])->findOrEmpty();
 
@@ -1188,9 +1193,9 @@ class SendMsgCronJobService
 
                 $send_teacher_data = [
                     'touser' => $student_schedule->student_openid,
-                    'template_id' => 'IYIMurENbyxkQ_axIsrkjMJNb8i1AIX4qRgVUEzQX6I',
+                    'template_id' => 'ng-vuuY_hHM3N2fR3VCGdhtg5zfYRmgdiYuffPEgXDs',
                     'data' => [
-                        'thing1' => [//所属课程
+                        'thing6' => [//课程名称
                             'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
                             'color' => '#000000'
                         ],
@@ -1198,6 +1203,10 @@ class SendMsgCronJobService
                             'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
                             'color' => '#000000'
                         ],
+                        'thing9' => [//学生姓名
+                            'value' => substr($student_schedule->english_name . '/' . date('m-d H:i', strtotime($student_schedule->start_time)), 0, 18) . '..',
+                            'color' => '#000000'
+                        ],
                         'thing3' => [//批改老师
                             'value' => $student_schedule->teacher_name,
                             'color' => '#000000'