充值切后台前端处理

tcx_xiyou_bt_dev
wangzhenxing 2024-07-01 18:28:39 +08:00
parent 1a179f52a8
commit b5e86ed6f6
1 changed files with 6 additions and 1 deletions

View File

@ -67,9 +67,14 @@ function Network:OnDisconnect(err)
Game.GlobalEvent:DispatchEvent(Protocal.Disconnect, self)
LogError("连接中断或被踢掉============================")
RequestPanel.Show(Language[12111])--..err)
--如果被踢掉跳过socket 连接直接发送重连请求 为了后端session放入缓存
self.socket:SendMessageWithCallBack(MessageTypeProto_pb.RECONNECT_REQUEST, MessageTypeProto_pb.RECONNECT_RESPONSE, nil, function(b)
end)
self.socket:TryReconnect()
self.ReconnectTime= Time.time
--Game.Logout()
end