This commit is contained in:
aozhiwei 2024-03-21 19:39:19 +08:00
parent d46e44d35f
commit 99010501b8

View File

@ -173,7 +173,6 @@ func (this *player) CMListPendingFriendRequest(hdr *f5.MsgHdr, msg *cs.CMListPen
this.SendMsg(rspMsg) this.SendMsg(rspMsg)
} }
// CMListFriend 我的好友列表
func (this *player) CMListFriend(hdr *f5.MsgHdr, msg *cs.CMListFriend) { func (this *player) CMListFriend(hdr *f5.MsgHdr, msg *cs.CMListFriend) {
accountId := this.accountId accountId := this.accountId
user := GetFriendMgr().GetUser(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) { func (this *player) CMBlacklist(hdr *f5.MsgHdr, msg *cs.CMBlacklist) {
rspMsg := &cs.SMBlacklist{} rspMsg := &cs.SMBlacklist{}
accountId := this.accountId accountId := this.accountId
@ -224,7 +222,6 @@ func (this *player) CMBlacklist(hdr *f5.MsgHdr, msg *cs.CMBlacklist) {
this.SendMsg(rspMsg) this.SendMsg(rspMsg)
} }
// CMAddFriendRequest 添加好友请求
func (this *player) CMAddFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAddFriendRequest) { func (this *player) CMAddFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAddFriendRequest) {
user1Id := this.accountId user1Id := this.accountId
user2Id := msg.GetTargetAccountId() 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) { func (this *player) CMAcceptFriendRequest(hdr *f5.MsgHdr, msg *cs.CMAcceptFriendRequest) {
user1Id := this.accountId user1Id := this.accountId
user2Id := msg.GetTargetAccountId() 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) { func (this *player) CMRejectFriendRequest(hdr *f5.MsgHdr, msg *cs.CMRejectFriendRequest) {
user1Id := this.accountId user1Id := this.accountId
user2Id := msg.GetTargetAccountId() 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) { func (this *player) CMDeleteFriendShip(hdr *f5.MsgHdr, msg *cs.CMDeleteFriendShip) {
user1Id := this.accountId user1Id := this.accountId
user2Id := msg.GetTargetAccountId() 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) { func (this *player) CMAddBlacklist(hdr *f5.MsgHdr, msg *cs.CMAddBlacklist) {
user1Id := this.accountId user1Id := this.accountId
user2Id := msg.GetTargetAccountId() 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) { func (this *player) CMRemoveBlacklist(hdr *f5.MsgHdr, msg *cs.CMRemoveBlacklist) {
user1Id := this.accountId user1Id := this.accountId
user2Id := msg.GetTargetAccountId() 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) { func (this *player) CMInviteFriendMsg(hdr *f5.MsgHdr, msg *cs.CMInviteFriendMsg) {
rspMsg := new(cs.SMInviteFriendMsg) rspMsg := new(cs.SMInviteFriendMsg)
p2 := GetPlayerMgr().GetPlayerByAccountId(msg.GetInviteAccountId()) 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) { func (this *player) CMSendChatMsg(hdr *f5.MsgHdr, msg *cs.CMSendChatMsg) {
if !IsValidChatChannel(msg.GetChatChannel()) { if !IsValidChatChannel(msg.GetChatChannel()) {
return return