|
|
@@ -140,7 +140,7 @@ function stopConnectMiddle()
|
|
|
end
|
|
|
|
|
|
function LW_HELLO(fd, msg)
|
|
|
- --print("LW Hello fd = "..fd)
|
|
|
+ print("LW Hello fd = "..fd)
|
|
|
--table.print_lua_table(msg)
|
|
|
--local stackTrace = debug.traceback("", 2)
|
|
|
--print("[LW_HELLO] 堆栈信息 "..stackTrace)
|
|
|
@@ -164,7 +164,7 @@ function LW_HELLO(fd, msg)
|
|
|
end
|
|
|
|
|
|
function WL_HELLO(fd, msg)
|
|
|
- print("WL hello")
|
|
|
+ print("WL hello fd = "..fd)
|
|
|
Log.write(Log.LOGID_INNER_CLOSE, "WL_HELLO")
|
|
|
|
|
|
if not IS_MIDDLE_CONNECT then
|
|
|
@@ -287,8 +287,8 @@ end
|
|
|
function LW_WARREPORT_GET_COMBATINFO(fd, msg)
|
|
|
local nDesServerID = msg.nDesServerID
|
|
|
local nDesFD = MiddleManager.getFDBySvrIndex(nDesServerID)
|
|
|
- local nSrcFD = MiddleManager.getFDBySvrIndex(msg.nSrcServerID)
|
|
|
- if not nDesFD or not nSrcFD then
|
|
|
+ --local nSrcFD = MiddleManager.getFDBySvrIndex(msg.nSrcServerID)
|
|
|
+ if not nDesFD then
|
|
|
print("[LW_WARREPORT_GET_COMBATINFO] 不存在对应的fd nDesServerID = "..nDesServerID.." nSrcServerID = "..msg.nSrcServerID)
|
|
|
return
|
|
|
end
|
|
|
@@ -297,7 +297,23 @@ function LW_WARREPORT_GET_COMBATINFO(fd, msg)
|
|
|
tMsgData.nSrcUID = msg.nSrcUID
|
|
|
tMsgData.type = msg.type
|
|
|
tMsgData.id = msg.id
|
|
|
- tMsgData.nSrcFD = nSrcFD
|
|
|
+ tMsgData.nSrcServerID = msg.nSrcServerID
|
|
|
+ tMsgData.mode = msg.mode
|
|
|
+
|
|
|
+ InnerMsg.sendMsg(nDesFD, tMsgData)
|
|
|
+end
|
|
|
+
|
|
|
+function LW_WARREPORT_SEND_COMBATINFO(fd, msg)
|
|
|
+ local nSrcServerID = msg.nSrcServerID
|
|
|
+ local nSrcFD = MiddleManager.getFDBySvrIndex(nSrcServerID)
|
|
|
+ if not nSrcFD then
|
|
|
+ print("[LW_MIDDLE_CHAT_GET_HERO_DATA] 不存在对应的fd nSrcServerID = "..nSrcServerID)
|
|
|
+ return
|
|
|
+ end
|
|
|
+
|
|
|
+ local tMsgData = InnerMsg.wl.WL_WARREPORT_SEND_COMBATINFO
|
|
|
+ tMsgData.nSrcUID = msg.nSrcUID
|
|
|
+ tMsgData.combatInfo = msg.combatInfo
|
|
|
tMsgData.mode = msg.mode
|
|
|
|
|
|
InnerMsg.sendMsg(nSrcFD, tMsgData)
|