fix 优化排课汇总导出

This commit is contained in:
Dai 2024-10-09 22:09:32 +08:00
parent e747323f26
commit 1ce0da01c6

View File

@ -543,7 +543,11 @@ class TeacherScheduleTimeController extends Crud
// $writer->save(public_path('/export_file/' . $month . '-' . time() . '.xlsx')); // $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/'; $file_path = '/export_file/';
$save_path = public_path($file_path); $save_path = public_path($file_path);
if (!is_dir($save_path)) { if (!is_dir($save_path)) {