From cd145b73add399ef7bccb29f8f56aeefefd1541d Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Wed, 10 Nov 2021 09:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E5=AD=98=E5=82=A8=E6=B0=B4=E5=8D=B0?= =?UTF-8?q?=E5=92=8C=E7=BC=A9=E7=95=A5=E5=9B=BE=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/crmeb/services/upload/storage/Cos.php | 2 +- crmeb/crmeb/services/upload/storage/Oss.php | 2 +- crmeb/crmeb/services/upload/storage/Qiniu.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/crmeb/services/upload/storage/Cos.php b/crmeb/crmeb/services/upload/storage/Cos.php index aad131724..00a95b9a0 100644 --- a/crmeb/crmeb/services/upload/storage/Cos.php +++ b/crmeb/crmeb/services/upload/storage/Cos.php @@ -198,8 +198,8 @@ class Cos extends BaseUpload if ($type == 'all' || $type == $v) { $height = 'thumb_' . $v . '_height'; $width = 'thumb_' . $v . '_width'; + $key = 'filePath' . ucfirst($v); if (isset($config[$height]) && isset($config[$width]) && $config[$height] && $config[$width]) { - $key = 'filePath' . ucfirst($v); $this->fileInfo->$key = $filePath . '?imageMogr2/thumbnail/' . $config[$width] . 'x' . $config[$height]; $this->fileInfo->$key = $this->water($this->fileInfo->$key); $data[$v] = $this->fileInfo->$key; diff --git a/crmeb/crmeb/services/upload/storage/Oss.php b/crmeb/crmeb/services/upload/storage/Oss.php index df06a3543..bb95cd386 100644 --- a/crmeb/crmeb/services/upload/storage/Oss.php +++ b/crmeb/crmeb/services/upload/storage/Oss.php @@ -198,8 +198,8 @@ class Oss extends BaseUpload if ($type == 'all' || $type == $v) { $height = 'thumb_' . $v . '_height'; $width = 'thumb_' . $v . '_width'; + $key = 'filePath' . ucfirst($v); if (isset($config[$height]) && isset($config[$width]) && $config[$height] && $config[$width]) { - $key = 'filePath' . ucfirst($v); $this->fileInfo->$key = $filePath . '?x-oss-process=image/resize,h_' . $config[$height] . ',w_' . $config[$width]; $this->fileInfo->$key = $this->water($this->fileInfo->$key); $data[$v] = $this->fileInfo->$key; diff --git a/crmeb/crmeb/services/upload/storage/Qiniu.php b/crmeb/crmeb/services/upload/storage/Qiniu.php index f76564149..cca5d4553 100644 --- a/crmeb/crmeb/services/upload/storage/Qiniu.php +++ b/crmeb/crmeb/services/upload/storage/Qiniu.php @@ -199,8 +199,8 @@ class Qiniu extends BaseUpload if ($type == 'all' || $type == $v) { $height = 'thumb_' . $v . '_height'; $width = 'thumb_' . $v . '_width'; + $key = 'filePath' . ucfirst($v); if (isset($config[$height]) && isset($config[$width]) && $config[$height] && $config[$width]) { - $key = 'filePath' . ucfirst($v); $this->fileInfo->$key = $filePath . '?imageView2/2/w/' . $config[$width] . '/h/' . $config[$height]; $this->fileInfo->$key = $this->water($this->fileInfo->$key); $data[$v] = $this->fileInfo->$key;