This commit is contained in:
2020-09-07 16:32:10 +08:00
parent 6391a9e2ad
commit df6e8439b3
+1 -4
View File
@@ -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);
}