From 99637e843784af708479451c9ae136fe41de17d2 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 24 Mar 2024 08:54:26 +0800 Subject: [PATCH] 1 --- server/imserver_new/friend/friendmgr.go | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/server/imserver_new/friend/friendmgr.go b/server/imserver_new/friend/friendmgr.go index 310ce600..b9718c6f 100644 --- a/server/imserver_new/friend/friendmgr.go +++ b/server/imserver_new/friend/friendmgr.go @@ -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 {