From cfee3f3022de243ccfb0f42d53e1f59ae9ff1ebf Mon Sep 17 00:00:00 2001 From: lewis <604446095@qq.com> Date: Thu, 21 Aug 2025 10:23:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=98=BF=E9=87=8C=E4=BA=91?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=BC=95=E6=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/service/storage/engine/Aliyun.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/common/service/storage/engine/Aliyun.php b/app/common/service/storage/engine/Aliyun.php index ad418b4..0055fde 100755 --- a/app/common/service/storage/engine/Aliyun.php +++ b/app/common/service/storage/engine/Aliyun.php @@ -38,16 +38,15 @@ class Aliyun extends Server $this->config['secret_key'], $this->config['domain'] ); - $ossClient->uploadFile( + return $ossClient->uploadFile( $this->config['bucket'], - $this->fileName, + $save_dir.'/'.$this->fileName, $this->getRealPath() ); } catch (OssException $e) { $this->error = $e->getMessage(); return false; } - return true; } /**