From 1ce0da01c66e9c1c94b540d3c25326655bb72858 Mon Sep 17 00:00:00 2001 From: Dai Date: Wed, 9 Oct 2024 22:09:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E6=8E=92=E8=AF=BE?= =?UTF-8?q?=E6=B1=87=E6=80=BB=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/app/controller/TeacherScheduleTimeController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/admin/app/controller/TeacherScheduleTimeController.php b/plugin/admin/app/controller/TeacherScheduleTimeController.php index 468e275..a12df2f 100644 --- a/plugin/admin/app/controller/TeacherScheduleTimeController.php +++ b/plugin/admin/app/controller/TeacherScheduleTimeController.php @@ -543,7 +543,11 @@ class TeacherScheduleTimeController extends Crud // $writer->save(public_path('/export_file/' . $month . '-' . time() . '.xlsx')); - $file_name = $month . '-' . time() . '.xlsx'; + if($is_publish){ + $file_name = $month . '-publish-' . time() . '.xlsx'; + }else{ + $file_name = $month . '-unpublish-' . time() . '.xlsx'; + } $file_path = '/export_file/'; $save_path = public_path($file_path); if (!is_dir($save_path)) {