update helper name
This commit is contained in:
parent
99bd9727ca
commit
c428ccf8e2
|
|
@ -83,7 +83,7 @@ class FileManagerService
|
|||
if (is_dir($folderPath)) {
|
||||
throw new \Exception("目录已存在");
|
||||
}
|
||||
createDirectories($catalogFolderPath);
|
||||
create_directories($catalogFolderPath);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ function to_sql($builder)
|
|||
* 递归创建文件夹
|
||||
* @param $directoryPath
|
||||
*/
|
||||
function createDirectories($directoryPath)
|
||||
function create_directories($directoryPath)
|
||||
{
|
||||
$path = '';
|
||||
$directories = explode('/', $directoryPath);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue