更新插件修复下载错误

This commit is contained in:
东宝书记 committed 2021-04-23 19:50:41 +08:00
1 parent a88c8eaf77
commit 3fa6c8f82f
23 files changed
+203 -191

No files matched your search

+2 -1
View File
@@ -533,6 +533,7 @@ class Index extends AdminBase
header('Content-Disposition: attachment;filename="' . $filename . '"');
header('Cache-Control: max-age=0');
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx');
ini_set("error_reporting","E_ALL & ~E_NOTICE");
$writer->save('php://output');
ob_flush();
flush();
@@ -656,8 +657,8 @@ class Index extends AdminBase
header('Content-Disposition: attachment;filename="' . $filename . '"');
header('Cache-Control: max-age=0');
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xls');
ini_set("error_reporting","E_ALL & ~E_NOTICE");
$writer->save('php://output');
ob_flush();
flush();
exit();