1
This commit is contained in:
parent
babc0667c8
commit
5d59e9605d
@ -111,17 +111,26 @@ func (this *friendMgr) GetFriendList(accountId string) []string {
|
||||
return friendList
|
||||
}
|
||||
|
||||
func (this *friendMgr) TraverseBlack(accountId string, cb func(string, int32) bool) {
|
||||
myBlacks := this.getBlacks(accountId)
|
||||
if myBlacks != nil {
|
||||
for a, t := range *myBlacks {
|
||||
if !cb(a, t) {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func (this *friendMgr) GetBlackList(accountId string) []string {
|
||||
blackList := []string{}
|
||||
/*
|
||||
this.TraverseFriend(
|
||||
this.TraverseBlack(
|
||||
accountId,
|
||||
func (friendId string, addTime int32) bool {
|
||||
ele := q5.NewSliceElement(&friendList)
|
||||
*ele = friendId
|
||||
func (blackId string, addTime int32) bool {
|
||||
ele := q5.NewSliceElement(&blackList)
|
||||
*ele = blackId
|
||||
return true
|
||||
})
|
||||
*/
|
||||
return blackList
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user