From c0ebf1ee82de42cb459c0885f64c27406385b42d Mon Sep 17 00:00:00 2001 From: fangpengfei <1225751694@qq.com> Date: Tue, 18 Oct 2022 23:24:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(upload):=20cos=E5=9B=BE=E5=BA=8A=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/imageBeds/cos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/imageBeds/cos.js b/util/imageBeds/cos.js index 76ee762..7f65eb6 100644 --- a/util/imageBeds/cos.js +++ b/util/imageBeds/cos.js @@ -38,7 +38,7 @@ class CosClient { Region: this.config.region, // 存储桶所在地域,必须字段 Key: `${this.config.prefixKey}/${fileName}`, // 文件名 必须 }); - return `https://${this.config.bucket}.cos.${this.config.region}.myqcloud.com/c`; + return `https://${this.config.bucket}.cos.${this.config.region}.myqcloud.com/${this.config.prefixKey}/${fileName}`; } catch (e) { out.warn(`检查图片信息时出错: ${transformRes(e)}`); return '';