iOS 客戶端調用函數,參數如下:func buyTicket(contestId: String, points: Int) -> SignalProducer<Void, Error> { Functions.functions().httpsCallable("myFunction").call([ "userId": Auth.auth().currentUser!.uid, "points": points, "contestId": contestId ], completion: ...然后在函數的開頭我有這個日志const userId = req.body.data.userId;const contestId = req.body.data.contestId;const points = req.body.data.points;console.log(`myFunction called with userId: ${userId} contestId: ${contestId} points: ${points}`);打印出來的是使用 userId 調用的 myFunction:BzoW5pWLbWRnd2UgjnTkfd3xfNf2 競賽Id:pBsQo0FHMyu4ay18dexy 點:[object Object]為什么點轉換為對象?當我嘗試將點傳遞給時,這導致我的函數崩潰FieldValue.increment
firebase 函數將整數轉換為對象
揚帆大魚
2022-11-11 14:21:21