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) {
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 {