我在云函數(shù)中的 if 子句使用通配符startWith:exports.resizeImage = functions .storage .object() .onFinalize(async (object) => { if (!object.name.startsWith('venues/{uid}/bg_img')) { console.log(`File ${object.name} not a venue bg pic..ignoring it`); return null; }我假設(shè)你不能使用startsWith通配符?如果是這樣,還有什么選擇?
是否可以在云函數(shù)中使用帶有通配符的 startWith?
千萬里不及你
2022-12-29 15:39:08