From e170abfdb48d37a1df9c1624a7a031c67f3aa5c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=B4=E6=8E=8C?= Date: Sat, 18 Jul 2020 20:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/system/controller/Fields.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/system/controller/Fields.php b/app/system/controller/Fields.php index e0760ee9..5188bda7 100644 --- a/app/system/controller/Fields.php +++ b/app/system/controller/Fields.php @@ -73,7 +73,7 @@ class Fields extends AdminBase $oldname = $filist->oldname; } - $url = public_path() . 'public\\uploads\\' . $filist->url; + $url = public_path() . 'uploads\\' . $filist->url; $data = file_exists($url); if ($data === true) { @@ -81,7 +81,7 @@ class Fields extends AdminBase } else { return $this->error('文件不存在!'); } - + }