Skip to content

Commit

Permalink
重置处理缩略图配置
Browse files Browse the repository at this point in the history
  • Loading branch information
moxuandi authored Apr 1, 2019
1 parent 7bcf0d2 commit 0177ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,14 @@ private function makeThumb($tempName)
$width = ArrayHelper::getValue($this->config['thumb'], 'width');
$height = ArrayHelper::getValue($this->config['thumb'], 'height');
$mode = ArrayHelper::getValue($this->config['thumb'], 'mode', 'outbound');
list($image, $thumb) = ArrayHelper::getValue($this->config['thumb'], 'match', ['image', 'thumb']);
list($imageStr, $thumbStr) = ArrayHelper::getValue($this->config['thumb'], 'match', ['image', 'thumb']);

if(!$width && !$height){
$this->stateInfo = self::$stateMap['ERROR_THUMB_WIDTH_HEIGHT'];
return false;
}

$this->thumbName = Helper::getThumbName($this->fullName, $image, $thumb);
$this->thumbName = Helper::getThumbName($this->fullName, $imageStr, $thumbStr);
$thumbPath = FileHelper::normalizePath($this->rootPath . $this->thumbName); // 文件在磁盘上的绝对路径

// 创建目录
Expand Down

0 comments on commit 0177ef9

Please sign in to comment.