From df6e8439b3b34e649aba3b8055dbee49cd9c9c3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 7 Sep 2020 16:32:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- function.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/function.php b/function.php index 960749d5..af7da94b 100644 --- a/function.php +++ b/function.php @@ -160,13 +160,10 @@ if (!function_exists('storage')) { if (empty($path)) { $fileName = rtrim($basePath, '/') . '/' . $fileName; } else if (empty($fileName)) { - $fileName = rtrim(initDir($basePath, $path)); + return rtrim(initDir($basePath, $path)); } else { $fileName = rtrim(initDir($basePath, $path)) . '/' . $fileName; } - if (empty($fileName)) { - return $path; - } if (!file_exists($fileName)) { touch($fileName); }