update helper name

This commit is contained in:
Edward Yang 2022-07-13 11:51:52 +08:00
parent 99bd9727ca
commit c428ccf8e2
3 changed files with 3 additions and 3 deletions

View File

@ -83,7 +83,7 @@ class FileManagerService
if (is_dir($folderPath)) {
throw new \Exception("目录已存在");
}
createDirectories($catalogFolderPath);
create_directories($catalogFolderPath);
}

View File

@ -256,7 +256,7 @@ function to_sql($builder)
* 递归创建文件夹
* @param $directoryPath
*/
function createDirectories($directoryPath)
function create_directories($directoryPath)
{
$path = '';
$directories = explode('/', $directoryPath);

View File

@ -48,7 +48,7 @@ class ImageService
$newImagePath = public_path($newImage);
if (!is_file($newImagePath) || (filemtime($this->imagePath) > filemtime($newImagePath))) {
createDirectories(dirname($newImage));
create_directories(dirname($newImage));
$img = Image::make($this->imagePath);
$img->resize($width, $height, function ($constraint) {