mirror of https://github.com/fantasticit/think.git
fix: 修复cos获取的是临时链接导致的图片加载403问题
This commit is contained in:
parent
463fae41b5
commit
aab3ef89d0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue