fix: 修复cos获取的是临时链接导致的图片加载403问题

This commit is contained in:
lixiaoming-bit 2022-08-12 10:16:33 +08:00
parent 463fae41b5
commit aab3ef89d0
1 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ export class TencentOssClient extends BaseOssClient {
if (err) {
resolve(false);
} else {
this.client.getObjectUrl(params, (err, data) => {
this.client.getObjectUrl({ ...params, Sign: false }, (err, data) => {
if (err) {
reject(err);
} else {
@ -114,7 +114,7 @@ export class TencentOssClient extends BaseOssClient {
if (err) {
reject(err);
}
this.client.getObjectUrl(params, (err, data) => {
this.client.getObjectUrl({ ...params, Sign: false }, (err, data) => {
if (err) {
reject(err);
} else {
@ -193,7 +193,7 @@ export class TencentOssClient extends BaseOssClient {
if (err) {
reject(err);
} else {
this.client.getObjectUrl(params, (err, data) => {
this.client.getObjectUrl({ ...params, Sign: false }, (err, data) => {
if (err) {
reject(err);
} else {