|
...
|
...
|
@@ -88,9 +88,10 @@ class InquiryController extends BaseController |
|
|
|
$table = new BatchExportService("询盘数据导出");
|
|
|
|
$file = $table->head($map)->data($data)->save();
|
|
|
|
if (!$file) {
|
|
|
|
throw new \Exception('路由不能为空');
|
|
|
|
throw new \Exception('文件生成失败,请重试');
|
|
|
|
}
|
|
|
|
$fileurl = Storage::disk('runtime')->url($file);
|
|
|
|
// return Storage::disk('runtime')->download($file); //直接下载
|
|
|
|
return $this->success(['url' => $fileurl]);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|