This commit is contained in:
2020-09-07 16:28:31 +08:00
parent 4b3173922e
commit 6391a9e2ad
3 changed files with 16 additions and 0 deletions
+3
View File
@@ -164,6 +164,9 @@ if (!function_exists('storage')) {
} else {
$fileName = rtrim(initDir($basePath, $path)) . '/' . $fileName;
}
if (empty($fileName)) {
return $path;
}
if (!file_exists($fileName)) {
touch($fileName);
}