This commit is contained in:
2025-12-16 17:05:08 +08:00
parent d5c9ed8d2f
commit eaf3249376
+2 -2
View File
@@ -572,7 +572,7 @@ class SkuController extends BaseController
*/
public function template(Request $request): Response
{
$filePath = runtime_path() . '/upload/import.xlsx';
$filePath = runtime_path() . '/upload/import.zip';
if (!file_exists($filePath)) {
return response('文件不存在', 404);
@@ -580,7 +580,7 @@ class SkuController extends BaseController
return response()->download(
$filePath,
'导入示例.xlsx' // 下载时显示的文件名
'导入示例.zip' // 下载时显示的文件名
);
}
}