From 780f7e0a0c3ac07cedad67fe9cbc7d13bf06604c Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Fri, 17 Jan 2025 11:25:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BF=AE=E6=94=B9=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/v1/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/v1/Article.php b/app/admin/controller/v1/Article.php index 62992d3a..55d38008 100644 --- a/app/admin/controller/v1/Article.php +++ b/app/admin/controller/v1/Article.php @@ -228,7 +228,7 @@ class Article $filename = date('YmdHms'); header('Access-Control-Expose-Headers: Content-Disposition'); header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; Charset=UTF-8'); - header('Content-Disposition: attachment;filename="' . $filename . '.xlsx"'); + header('Content-Disposition: attachment;filename=' . $filename . '.xlsx'); header('Cache-Control: max-age=0'); $writer = IOFactory::createWriter($spreadsheet, 'Xlsx'); $writer->save('php://output');