更新dps其他包处理逻辑 在没有uid cid情况下跳过

This commit is contained in:
lenheart 2025-12-03 18:59:03 +08:00
parent 43c3d0a92e
commit a3b2ae9cc4
1 changed files with 13 additions and 11 deletions

View File

@ -55,7 +55,8 @@ function OnGatewaySocketMsg(Msg) {
if (Jso.op in GatewaySocketPackFuncMap) {
GatewaySocketPackFuncMap[Jso.op](Jso);
} else {
// print(Msg);
//其他包处理逻辑
if (Jso.rawin("uid") && Jso.rawin("cid")) {
local SUser = World.GetUserByUidCid(Jso.uid, Jso.cid);
if (SUser) {
local Pack = Packet();
@ -69,6 +70,7 @@ function OnGatewaySocketMsg(Msg) {
}
}
}
}