Skip to content

Commit

Permalink
fix(tcb-shop): fix handling cloud image
Browse files Browse the repository at this point in the history
  • Loading branch information
Areo-Joe committed Sep 24, 2024
1 parent 9f5d3f3 commit 40b4780
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions miniprogram/tcb-shop/utils/cloudImageHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function getCloudImageTempUrl(images) {
}

export async function getSingleCloudImageTempUrl(image) {
if (!image.startsWith('cloud')) return image;
return (
await wx.cloud.getTempFileURL({
fileList: [image],
Expand Down

0 comments on commit 40b4780

Please sign in to comment.