From 9bfe0fb0ea3496a06e633acddf26ca25b0270d2d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 30 Mar 2024 13:00:19 +0800 Subject: [PATCH] 1 --- server/imserver_new/common/types.go | 2 +- server/imserver_new/player/player.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/imserver_new/common/types.go b/server/imserver_new/common/types.go index c648e74e..d4332f4c 100644 --- a/server/imserver_new/common/types.go +++ b/server/imserver_new/common/types.go @@ -58,7 +58,7 @@ type FriendMgr interface { IsFriend(string, string) bool GetFriendList(string) []string GetBlackList(string) []string - AsyncGetApplyList(string, string, func(int32, string, int64, []string)) + AsyncGetApplyList(int64, string, func(int32, string, int64, []string)) AsyncAddFriend(string, string, func(int32, string)) AsyncAccpetApply(string, string, func(int32, string)) AsyncRejectApply(string, string, func(int32, string)) diff --git a/server/imserver_new/player/player.go b/server/imserver_new/player/player.go index 89ee181b..1c4fa8f2 100644 --- a/server/imserver_new/player/player.go +++ b/server/imserver_new/player/player.go @@ -92,7 +92,7 @@ func (this *player) CMSearchUserByAccountId(hdr *f5.MsgHdr, msg *cs.CMSearchUser func (this *player) CMListPendingFriendRequest(hdr *f5.MsgHdr, msg *cs.CMListPendingFriendRequest) { GetFriendMgr().AsyncGetApplyList( - "", + 0, this.GetAccountId(), func (errCode int32, errMsg string, sinceId int64, accountIds []string) { rspMsg := new(cs.SMListPendingFriendRequest)