更新插件修复下载错误
This commit is contained in:
1 parent
a88c8eaf77
commit
3fa6c8f82f
23 files changed
+203
-191
No files matched your search
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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
Reference in new issue
Block a user