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)) {