修复文件上传生成缩图函数名不正确

This commit is contained in:
乐风 2021-05-14 05:20:21 +08:00
parent 6e1c7d1bba
commit 6e59a7dd41
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class MediaController extends DefaultController
if (in_array($mimeType, $fileTypes)) {
$path = pathinfo($path.'/'.$filename);
$thumb = $path['dirname'].'/'.thumb($upload_path.'/'.$filename, 750);
$thumb = $path['dirname'].'/'. image_thumb($upload_path.'/'.$filename, 750);
$data['thumb'] = $thumb;
}
@ -89,7 +89,7 @@ class MediaController extends DefaultController
$path = pathinfo($file);
$thumb = $path['dirname'].'/t750_'.$path['basename'];
if (!is_file(upload_path().'/'.$thumb)) {
thumb(upload_path().'/'.$file, 750);
image_thumb(upload_path().'/'.$file, 750);
}
$row['path'] = $file;
$row['thumb'] = $thumb;