当前正在考虑应该使用哪一个来从Google存储空间检索图像:
storageRef.child(`restaurants/${image_name}`).getDownloadURL()
firebase.firestore().collection('restaurants').doc().get()
通话中获取图片网址或
getSignedUrl()
firebase.firestore().collection('restaurants').doc().get()
...
var payload = doc.data()
bucket.file(`restaurants/${payload.image_name}`).getSignedUrl({
action: 'read',
expires: '01-01-2100'
})
帮助我确定最适合我的React项目的一个吗?