更新插件修复下载错误

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

+3 -2
View File
@@ -263,12 +263,13 @@ class Bjtongji extends AdminBase
// 保存文件
$filename = $tabletitle.date('ymdHis').'.xlsx';
$filename = $tabletitle . date('ymdHis', time()) . '.xlsx';
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment;filename="' . $filename . '"');
header('Cache-Control: max-age=0');
$writer = \PhpOffice\PhpSpreadsheet\IOFactory::createWriter($spreadsheet, 'Xlsx');
$writer->save('php://output');
ini_set("error_reporting","E_ALL & ~E_NOTICE");
$writer->save('php://output');halt($filename);
ob_flush();
flush();
exit();
+2
View File
@@ -442,6 +442,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();
@@ -648,6 +649,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();
+1
View File
@@ -247,6 +247,7 @@ class Njtongji 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();
Loaded 3 of 23 files, more files were not shown because too many files have changed in this diff. Show more