1
This commit is contained in:
parent
babc0667c8
commit
5d59e9605d
@ -111,17 +111,26 @@ func (this *friendMgr) GetFriendList(accountId string) []string {
|
|||||||
return friendList
|
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 {
|
func (this *friendMgr) GetBlackList(accountId string) []string {
|
||||||
blackList := []string{}
|
blackList := []string{}
|
||||||
/*
|
this.TraverseBlack(
|
||||||
this.TraverseFriend(
|
|
||||||
accountId,
|
accountId,
|
||||||
func (friendId string, addTime int32) bool {
|
func (blackId string, addTime int32) bool {
|
||||||
ele := q5.NewSliceElement(&friendList)
|
ele := q5.NewSliceElement(&blackList)
|
||||||
*ele = friendId
|
*ele = blackId
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
*/
|
|
||||||
return blackList
|
return blackList
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user