diff --git a/app/common/service/SendMsgCronJobService.php b/app/common/service/SendMsgCronJobService.php index 496c928..e9a9c5e 100644 --- a/app/common/service/SendMsgCronJobService.php +++ b/app/common/service/SendMsgCronJobService.php @@ -1033,8 +1033,7 @@ class SendMsgCronJobService $next_time = '作业提交时间为下次上课前';//不能没有值 } - - if (!empty($subject_homework->subject_file_url)) { + if (!empty($subject_homework->subject_report_version_url)) { $send_teacher_data = [ 'touser' => $student_schedule->student_openid, @@ -1063,6 +1062,10 @@ class SendMsgCronJobService "lang" => "zh_CN", ]; + print '
'; + print_r($send_teacher_data); + die; + $result = (new WechatSubscriptService())->sendMsg($send_teacher_data); //@todo:写入日志中