fix 课程作业发布提醒学生、家长

This commit is contained in:
Dai 2024-10-07 21:25:50 +08:00
parent e4ec682f03
commit 5e78d3eccd

View File

@ -1132,7 +1132,7 @@ class SendMsgCronJobService
'en_end_time' => $subject_homework->en_end_time, 'en_end_time' => $subject_homework->en_end_time,
'send_role' => 'parent', 'send_role' => 'parent',
'send_data' => json_encode($send_teacher_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'send_data' => json_encode($send_teacher_data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
'msg_info' => json_encode($subject_homework->toArray(), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES), 'msg_info' => json_encode(['parent'=>$parent->toArray(), 'subject_homework'=>$subject_homework->toArray()], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES),
'send_result' => $result['code'] == ResponseCode::SUCCESS ? 1 : 0, 'send_result' => $result['code'] == ResponseCode::SUCCESS ? 1 : 0,
'send_result_msg' => $result['msg'], 'send_result_msg' => $result['msg'],
]); ]);