From 0802ea1f74af4b9241bb79df1e8c38562e801e77 Mon Sep 17 00:00:00 2001 From: anfu Date: Fri, 13 Sep 2024 10:45:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/Index.php b/app/controller/Index.php index 3eba8f6..16daac9 100644 --- a/app/controller/Index.php +++ b/app/controller/Index.php @@ -27,7 +27,7 @@ class Index $serverIP = $env->get('HTTP_HOST', '192.168.1.161:8000'); // 组装保存路径 - $savename = \think\facade\Filesystem::disk('upload')->putFile('upload', $file); + $savename = \think\facade\Filesystem::disk('upload')->putFile('uploads', $file); $savename = str_replace('\\', '/', $savename); return json([