This commit is contained in:
2020-09-07 16:03:19 +08:00
parent c7abbae458
commit 4a11a0e813
2 changed files with 6 additions and 4 deletions
+3 -4
View File
@@ -158,11 +158,11 @@ if (!function_exists('storage')) {
{
$basePath = Snowflake::getStoragePath();
if (empty($path)) {
$fileName = $basePath . '/' . $fileName;
$fileName = rtrim($basePath, '/') . '/' . $fileName;
} else if (empty($fileName)) {
$fileName = initDir($basePath, $path);
$fileName = rtrim(initDir($basePath, $path));
} else {
$fileName = initDir($basePath, $path) . '/' . $fileName;
$fileName = rtrim(initDir($basePath, $path)) . '/' . $fileName;
}
if (!file_exists($fileName)) {
touch($fileName);
@@ -301,7 +301,6 @@ if (!function_exists('merge')) {
}
if (!function_exists('jTraceEx')) {
/**