File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ const handle = async (ctx: IPicGo): Promise<IPicGo | boolean> => {
142
142
delete img . base64Image
143
143
delete img . buffer
144
144
if ( customUrl ) {
145
- img . imgUrl = `${ customUrl } /${ encodeURIComponent ( path ) } ${ encodeURIComponent ( img . fileName ) } ${ optionUrl } `
145
+ img . imgUrl = `${ customUrl } /${ encodeURI ( path ) } ${ encodeURI ( img . fileName ) } ${ optionUrl } `
146
146
} else {
147
- img . imgUrl = `https://${ tcYunOptions . bucket } .cos.${ tcYunOptions . area } .myqcloud.com/${ encodeURIComponent ( path ) } ${ encodeURIComponent ( img . fileName ) } ${ optionUrl } `
147
+ img . imgUrl = `https://${ tcYunOptions . bucket } .cos.${ tcYunOptions . area } .myqcloud.com/${ encodeURI ( path ) } ${ encodeURI ( img . fileName ) } ${ optionUrl } `
148
148
}
149
149
} else {
150
150
throw new Error ( res . body . msg )
You can’t perform that action at this time.
0 commit comments