【发布时间】:2018-08-18 05:10:01
【问题描述】:
使用此代码,我将覆盖旧数据:
let toUpdate = [book.id]
self.refUsers.child(localUser.key!).child("booksPurchased").setValue(toUpdate, withCompletionBlock: { (error, _) in
【问题讨论】:
-
每次在同时修改的数据中使用数组时,一只小狗就会死去。
标签: ios swift firebase firebase-realtime-database