This commit is contained in:
aozhiwei 2024-03-24 10:14:25 +08:00
parent 3e90315b75
commit 2e2e0e1de7

View File

@ -168,5 +168,14 @@ func (this *friendMgr) addFriendShip(accountId1 string, accountId2 string, addTi
this.friendHash[accountId1] = make(map[string]int32)
friends = this.getFriends(accountId1)
}
(*friends)[accountId2] = addTime
}
{
friends := this.getFriends(accountId2)
if friends != nil {
this.friendHash[accountId2] = make(map[string]int32)
friends = this.getFriends(accountId2)
}
(*friends)[accountId1] = addTime
}
}