This commit is contained in:
aozhiwei 2024-03-24 08:54:26 +08:00
parent 9ca9f553fd
commit 99637e8437

View File

@ -14,14 +14,23 @@ func (this *friendMgr) Init() {
this.friendHash = make(map[string]*map[string]int32)
this.blackHash = make(map[string]*map[string]int32)
this.byBlackHash = make(map[string]*map[string]int32)
this.loadFromDB()
}
func (this *friendMgr) UnInit() {
}
func (this *friendMgr) loadFromDB() {
//this.loadFriendships()
//this.loadBlacklist()
this.loadFriendships()
this.loadBlacklist()
}
func (this *friendMgr) loadFriendships() {
}
func (this *friendMgr) loadBlacklist() {
}
func (this *friendMgr) IsFriend(accountId1 string, accountId2 string) bool {