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