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