1
This commit is contained in:
@@ -572,7 +572,7 @@ class SkuController extends BaseController
|
|||||||
*/
|
*/
|
||||||
public function template(Request $request): Response
|
public function template(Request $request): Response
|
||||||
{
|
{
|
||||||
$filePath = runtime_path() . '/upload/import.xlsx';
|
$filePath = runtime_path() . '/upload/import.zip';
|
||||||
|
|
||||||
if (!file_exists($filePath)) {
|
if (!file_exists($filePath)) {
|
||||||
return response('文件不存在', 404);
|
return response('文件不存在', 404);
|
||||||
@@ -580,7 +580,7 @@ class SkuController extends BaseController
|
|||||||
|
|
||||||
return response()->download(
|
return response()->download(
|
||||||
$filePath,
|
$filePath,
|
||||||
'导入示例.xlsx' // 下载时显示的文件名
|
'导入示例.zip' // 下载时显示的文件名
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user