Merge pull request #156 from lixiaoming-bit/fix/cos

pull/157/head
fantasticit 2022-08-12 10:44:44 +08:00 committed by GitHub
commit 099c44cded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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