作者 lyh

gx

... ... @@ -171,8 +171,7 @@ class DomainInfoController extends BaseController
// 创建一个新的 Excel Writer 对象
$writer = new Xlsx($spreadsheet);
// 设置导出文件的保存路径和文件名
$this->config = config('filesystems.disks.upload');
$filePath = $this->config['root'].'/excel/'.time().'.xlsx';
$filePath = storage_path('export/'.time().'.xlsx');;
// 导出 Excel 文件
$writer->save($filePath);
// 返回导出文件的响应
... ...