From edb983e01e9a0d42db52c6063c7fc32ec73d5267 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Mon, 16 Jun 2025 15:40:04 +0800 Subject: [PATCH] =?UTF-8?q?oss=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/common/util/AliyunOSS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/application/common/util/AliyunOSS.php b/Server/application/common/util/AliyunOSS.php index e24e4098..d25cf7af 100644 --- a/Server/application/common/util/AliyunOSS.php +++ b/Server/application/common/util/AliyunOSS.php @@ -48,7 +48,7 @@ class AliyunOSS $result = $client->uploadFile(self::BUCKET, $objectName, $filePath); // 获取文件访问URL - $url = $client->signUrl(self::BUCKET, $objectName, 3600); + $url = !empty($result['oss-request-url']) ? $result['oss-request-url'] : $client->signUrl(self::BUCKET, $objectName, 3600); return [ 'success' => true,