优化
This commit is contained in:
parent
20cb57a7f8
commit
6fc48de7ae
@ -5249,21 +5249,22 @@ func ReqFriendReplyHandle(player *Player, buf []byte) error {
|
||||
})
|
||||
return fmt.Errorf("reply info not exist")
|
||||
}
|
||||
|
||||
switch ReplyInfo.Type {
|
||||
case friend.REPLY_TYPE_GREETING:
|
||||
ReplyData := friend.ReplyInfo{
|
||||
Uid: int(player.M_DwUin),
|
||||
Type: friend.REPLY_TYPE_GREETING_Get,
|
||||
Param: req.Param,
|
||||
if req.Type == 1 {
|
||||
switch ReplyInfo.Type {
|
||||
case friend.REPLY_TYPE_GREETING:
|
||||
ReplyData := friend.ReplyInfo{
|
||||
Uid: int(player.M_DwUin),
|
||||
Type: friend.REPLY_TYPE_GREETING_Get,
|
||||
Param: req.Param,
|
||||
}
|
||||
FriendMgrSend(&MsqMod.Msg{
|
||||
From: int(player.M_DwUin),
|
||||
To: int(ReplyInfo.Uid),
|
||||
Type: MsqMod.HANDLE_TYPE_FRIEND_GREETING_REPLY,
|
||||
SendT: GoUtil.Now(),
|
||||
Extra: ReplyData,
|
||||
})
|
||||
}
|
||||
FriendMgrSend(&MsqMod.Msg{
|
||||
From: int(player.M_DwUin),
|
||||
To: int(ReplyInfo.Uid),
|
||||
Type: MsqMod.HANDLE_TYPE_FRIEND_GREETING_REPLY,
|
||||
SendT: GoUtil.Now(),
|
||||
Extra: ReplyData,
|
||||
})
|
||||
}
|
||||
FriendLogBackData(player)
|
||||
player.PushClientRes(&msg.ResFriendReplyHandle{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user