refactor: 导入xlsx添加exit防止因debug导致导出文件有问题

This commit is contained in:
2025-02-27 10:41:47 +08:00
parent 0be323cfcf
commit 2d94f99852
5 changed files with 5 additions and 0 deletions

View File

@@ -221,6 +221,7 @@ class Article
// 导出
xlsx_writer($data, $schema)->save('php://output');
exit;
}
// 获取文章导出数据

View File

@@ -106,6 +106,7 @@ class ArticleLeaveMessage
// 导出
xlsx_writer($data, $schema)->save('php://output');
exit;
}
private function getExportMessageData()
{

View File

@@ -336,6 +336,7 @@ class Product
// 导出
xlsx_writer($data, $schema)->save('php://output');
exit;
}
// 获取产品导出数据
private function getExportProductData()

View File

@@ -223,6 +223,7 @@ class ProductPurchaseLink
/// 导出
xlsx_writer($data, $schema)->save('php://output');
exit;
}
private function getExportLinkData()
{

View File

@@ -196,6 +196,7 @@ class Video
// 导出
xlsx_writer($data, $schema)->save('php://output');
exit;
}
private function getExportVideoData()
{