Skip to content

Commit

Permalink
fix(upload): cos图床上传问题
Browse files Browse the repository at this point in the history
  • Loading branch information
LetTTGACO committed Oct 18, 2022
1 parent 3393c3e commit c0ebf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/imageBeds/cos.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 '';
Expand Down

0 comments on commit c0ebf1e

Please sign in to comment.