From 0e916a28040357dd889d48721c5b920d50c26771 Mon Sep 17 00:00:00 2001 From: weifs <605403358@qq.com> Date: Tue, 5 Mar 2024 15:19:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E5=87=BA=E7=9A=84=E7=AD=BE?= =?UTF-8?q?=E5=88=B0=E6=95=B0=E6=8D=AE=E5=92=8C=E5=AE=A1=E6=89=B9=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=8D=A2=E6=88=90xlsx=EF=BC=8C=E5=9B=A0=E8=80=81?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E7=9A=84xls=E4=BC=9A=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E5=85=BC=E5=AE=B9=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/ApproveController.php | 4 ++-- app/Http/Controllers/Api/SystemController.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Api/ApproveController.php b/app/Http/Controllers/Api/ApproveController.php index 437af3314..96926c675 100755 --- a/app/Http/Controllers/Api/ApproveController.php +++ b/app/Http/Controllers/Api/ApproveController.php @@ -858,7 +858,7 @@ class ApproveController extends AbstractController BillExport::create()->setTitle($title)->setHeadings($headings)->setData($datas)->setStyles(["A1:Y1" => ["font" => ["bold" => true]]]) ]; // - $fileName = '审批记录_' . Base::time() . '.xls'; + $fileName = '审批记录_' . Base::time() . '.xlsx'; $filePath = "temp/approve/export/" . date("Ym", Base::time()); $export = new BillMultipleExport($sheets); $res = $export->store($filePath . "/" . $fileName); @@ -866,7 +866,7 @@ class ApproveController extends AbstractController return Base::retError('导出失败,' . $fileName . '!'); } $xlsPath = storage_path("app/" . $filePath . "/" . $fileName); - $zipFile = "app/" . $filePath . "/" . Base::rightDelete($fileName, '.xls') . ".zip"; + $zipFile = "app/" . $filePath . "/" . Base::rightDelete($fileName, '.xlsx') . ".zip"; $zipPath = storage_path($zipFile); if (file_exists($zipPath)) { Base::deleteDirAndFile($zipPath, true); diff --git a/app/Http/Controllers/Api/SystemController.php b/app/Http/Controllers/Api/SystemController.php index e271745c6..dd448a759 100755 --- a/app/Http/Controllers/Api/SystemController.php +++ b/app/Http/Controllers/Api/SystemController.php @@ -1210,7 +1210,7 @@ class SystemController extends AbstractController if (count($users) > 1) { $fileName .= "等" . count($userid) . "位成员"; } - $fileName .= '签到记录_' . Base::time() . '.xls'; + $fileName .= '签到记录_' . Base::time() . '.xlsx'; $filePath = "temp/checkin/export/" . date("Ym", Base::time()); $export = new BillMultipleExport($sheets); $res = $export->store($filePath . "/" . $fileName); @@ -1218,7 +1218,7 @@ class SystemController extends AbstractController return Base::retError('导出失败,' . $fileName . '!'); } $xlsPath = storage_path("app/" . $filePath . "/" . $fileName); - $zipFile = "app/" . $filePath . "/" . Base::rightDelete($fileName, '.xls') . ".zip"; + $zipFile = "app/" . $filePath . "/" . Base::rightDelete($fileName, '.xlsx') . ".zip"; $zipPath = storage_path($zipFile); if (file_exists($zipPath)) { Base::deleteDirAndFile($zipPath, true);