This commit is contained in:
aozhiwei 2023-09-15 15:09:43 +08:00
parent 9ec658df70
commit 3c2f44a3ab
5 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[ [
{ {
"instance_id": 1, "instance_id": 1,
"listen_port": 8888, "listen_port": 8898,
"http_listen_port": 8889 "http_listen_port": 8899
} }
] ]

View File

@ -2,6 +2,6 @@
{ {
"instance_id": 1, "instance_id": 1,
"ip": "192.168.100.45", "ip": "192.168.100.45",
"listen_port": 7821 "listen_port": 7921
} }
] ]

View File

@ -57,11 +57,16 @@ func (this *app) Update() {
} else { } else {
handler := cs.GetNetMsgHandler(hdr.MsgId) handler := cs.GetNetMsgHandler(hdr.MsgId)
if handler != nil { if handler != nil {
if !f5.IsOnlineEnv() {
f5.GetSysLog().Info("%s %s", q5.GetTypeName(hdr.Msg), q5.EncodeJson(hdr.Msg))
}
switch handler.HandlerId { switch handler.HandlerId {
case constant.PLAYER_MGR_HANDLER_ID: case constant.PLAYER_MGR_HANDLER_ID:
fallthrough
case constant.PLAYER_HANDLER_ID: case constant.PLAYER_HANDLER_ID:
GetPlayerMgr().ProcessCMMsg(handler, hdr) GetPlayerMgr().ProcessCMMsg(handler, hdr)
case constant.ROOM_HANDLER_ID: case constant.ROOM_HANDLER_ID:
fallthrough
case constant.ROOM_MGR_HANDLER_ID: case constant.ROOM_MGR_HANDLER_ID:
GetRoomMgr().ProcessCMMsg(handler, hdr) GetRoomMgr().ProcessCMMsg(handler, hdr)
} }

View File

@ -154,6 +154,9 @@ func (this *WSPListener) parseNetPkt() {
func (this *WSPListener) SendProxyMsg(conn net.Conn, socketHandle uint16, msg proto.Message) { func (this *WSPListener) SendProxyMsg(conn net.Conn, socketHandle uint16, msg proto.Message) {
netMsg := msg.(f5.NetMsg) netMsg := msg.(f5.NetMsg)
if !f5.IsOnlineEnv() {
f5.GetSysLog().Info("%s %s", q5.GetTypeName(msg), q5.EncodeJson(msg))
}
msgData, err := proto.Marshal(msg) msgData, err := proto.Marshal(msg)
if err != nil { if err != nil {
return return

2
third_party/f5 vendored

@ -1 +1 @@
Subproject commit 47db6c9c60d59681e7fc02bd5649d7fe918b124e Subproject commit 05f5ccedec312db465990b8f821125faea96ee78