refactor: 修改xlsx导出

This commit is contained in:
2025-03-10 14:59:47 +08:00
parent 43630eb20a
commit 2e7c0887ea
7 changed files with 20 additions and 13 deletions

View File

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