From 0177ef93519c9c67717925fa0143077be17947f3 Mon Sep 17 00:00:00 2001 From: moxuandi <1104984259@qq.com> Date: Mon, 1 Apr 2019 21:57:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BD=AE=E5=A4=84=E7=90=86=E7=BC=A9?= =?UTF-8?q?=E7=95=A5=E5=9B=BE=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Uploader.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Uploader.php b/Uploader.php index 5def493..3831769 100644 --- a/Uploader.php +++ b/Uploader.php @@ -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); // 文件在磁盘上的绝对路径 // 创建目录