jjzjj

DataEventType

全部标签

swift - databaseReference.observe(DataEventType.value, :{(DataSnapshot) not working properly all the time

funccheckPaid(utilityId:String)->Int{varamount:String=""varstatus=0print("insidenewfunction")print("\(utilityId)insidenewfunction")self.databaseRefPayment.observe(DataEventType.value,with:{(DataSnapshot)inifDataSnapshot.childrenCount>0{forpaymentsinDataSnapshot.children.allObjectsas![DataSnapsho