连接优化
This commit is contained in:
parent
60725fca2a
commit
9ac20a99b6
@ -224,6 +224,7 @@ func PlayerLoginHandler(data *msg.Msg) (interface{}, error) {
|
|||||||
SendMsgToNodeAsync(message, node)
|
SendMsgToNodeAsync(message, node)
|
||||||
}
|
}
|
||||||
log.Debug("[Middleware] Player sync logout message player id: %v, len: %d", data.From, len)
|
log.Debug("[Middleware] Player sync logout message player id: %v, len: %d", data.From, len)
|
||||||
|
ReplyPlayerMsgASync(data, nil)
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -869,7 +869,7 @@ func (p *Player) HandleItem(itemList []*item.Item, Label string) error {
|
|||||||
|
|
||||||
// 登录返回数据
|
// 登录返回数据
|
||||||
func (p *Player) LoginBackData() {
|
func (p *Player) LoginBackData() {
|
||||||
SendMsgToCenterAsync(&MsgMod.Msg{
|
SendMsgToCenterSync(&MsgMod.Msg{
|
||||||
From: int(p.M_DwUin),
|
From: int(p.M_DwUin),
|
||||||
HandleType: MsgMod.HANDLE_MOD_PLAYER_LOGIN,
|
HandleType: MsgMod.HANDLE_MOD_PLAYER_LOGIN,
|
||||||
Extra: conf.Server.ServerID,
|
Extra: conf.Server.ServerID,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user