This commit is contained in:
aozhiwei 2024-03-27 09:15:44 +08:00
parent babc0667c8
commit 5d59e9605d

View File

@ -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
}