From 99010501b8d1ae2cb89eb1ca9d4f36fcbb733d96 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 21 Mar 2024 19:39:19 +0800 Subject: [PATCH] 1 --- server/imserver_new/player/player.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/server/imserver_new/player/player.go b/server/imserver_new/player/player.go index f58c9c56..3846be45 100644 --- a/server/imserver_new/player/player.go +++ b/server/imserver_new/player/player.go @@ -173,7 +173,6 @@ func (this *player) CMListPendingFriendRequest(hdr *f5.MsgHdr, msg *cs.CMListPen this.SendMsg(rspMsg) } -// CMListFriend 我的好友列表 func (this *player) CMListFriend(hdr *f5.MsgHdr, msg *cs.CMListFriend) { accountId := this.accountId user := GetFriendMgr().GetUser(accountId) @@ -203,7 +202,6 @@ func (this *player) CMListFriend(hdr *f5.MsgHdr, msg *cs.CMListFriend) { }) } -// CMBlacklist 黑名单列表 func (this *player) CMBlacklist(hdr *f5.MsgHdr, msg *cs.CMBlacklist) { rspMsg := &cs.SMBlacklist{} accountId := this.accountId @@ -224,7 +222,6 @@ func (this *player) CMBlacklist(hdr *f5.MsgHdr, msg *cs.CMBlacklist) { this.SendMsg(rspMsg) } -// CMAddFriendRequest 添加好友请求 func (this *player) CMAddFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAddFriendRequest) { user1Id := this.accountId user2Id := msg.GetTargetAccountId() @@ -240,7 +237,6 @@ func (this *player) CMAddFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAddFriendReques }) } -// CMAcceptFriendRequest 接受好友请求 func (this *player) CMAcceptFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAcceptFriendRequest) { user1Id := this.accountId user2Id := msg.GetTargetAccountId() @@ -256,7 +252,6 @@ func (this *player) CMAcceptFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAcceptFriend }) } -// CMRejectFriendRequest 拒绝好友请求 func (this *player) CMRejectFriendRequest(hdr *f5.MsgHdr, msg *cs.CMRejectFriendRequest) { user1Id := this.accountId user2Id := msg.GetTargetAccountId() @@ -272,7 +267,6 @@ func (this *player) CMRejectFriendRequest(hdr *f5.MsgHdr, msg *cs.CMRejectFriend }) } -// CMDeleteFriendShip 删除好友 func (this *player) CMDeleteFriendShip(hdr *f5.MsgHdr, msg *cs.CMDeleteFriendShip) { user1Id := this.accountId user2Id := msg.GetTargetAccountId() @@ -285,7 +279,6 @@ func (this *player) CMDeleteFriendShip(hdr *f5.MsgHdr, msg *cs.CMDeleteFriendShi }) } -// CMAddBlacklist 加入黑名单 func (this *player) CMAddBlacklist(hdr *f5.MsgHdr, msg *cs.CMAddBlacklist) { user1Id := this.accountId user2Id := msg.GetTargetAccountId() @@ -301,7 +294,6 @@ func (this *player) CMAddBlacklist(hdr *f5.MsgHdr, msg *cs.CMAddBlacklist) { }) } -// CMRemoveBlacklist 移除黑名单 func (this *player) CMRemoveBlacklist(hdr *f5.MsgHdr, msg *cs.CMRemoveBlacklist) { user1Id := this.accountId user2Id := msg.GetTargetAccountId() @@ -317,7 +309,6 @@ func (this *player) CMRemoveBlacklist(hdr *f5.MsgHdr, msg *cs.CMRemoveBlacklist) }) } -// CMInviteFriendMsg 邀请好友加入队伍 func (this *player) CMInviteFriendMsg(hdr *f5.MsgHdr, msg *cs.CMInviteFriendMsg) { rspMsg := new(cs.SMInviteFriendMsg) p2 := GetPlayerMgr().GetPlayerByAccountId(msg.GetInviteAccountId()) @@ -331,7 +322,6 @@ func (this *player) CMInviteFriendMsg(hdr *f5.MsgHdr, msg *cs.CMInviteFriendMsg) } } -// CMSendChatMsg 发送聊天消息 func (this *player) CMSendChatMsg(hdr *f5.MsgHdr, msg *cs.CMSendChatMsg) { if !IsValidChatChannel(msg.GetChatChannel()) { return