更新dps其他包处理逻辑 在没有uid cid情况下跳过
This commit is contained in:
parent
43c3d0a92e
commit
a3b2ae9cc4
|
|
@ -55,17 +55,19 @@ function OnGatewaySocketMsg(Msg) {
|
||||||
if (Jso.op in GatewaySocketPackFuncMap) {
|
if (Jso.op in GatewaySocketPackFuncMap) {
|
||||||
GatewaySocketPackFuncMap[Jso.op](Jso);
|
GatewaySocketPackFuncMap[Jso.op](Jso);
|
||||||
} else {
|
} else {
|
||||||
// print(Msg);
|
//其他包处理逻辑
|
||||||
local SUser = World.GetUserByUidCid(Jso.uid, Jso.cid);
|
if (Jso.rawin("uid") && Jso.rawin("cid")) {
|
||||||
if (SUser) {
|
local SUser = World.GetUserByUidCid(Jso.uid, Jso.cid);
|
||||||
local Pack = Packet();
|
if (SUser) {
|
||||||
Pack.Put_Header(1, 130);
|
local Pack = Packet();
|
||||||
Pack.Put_Byte(1);
|
Pack.Put_Header(1, 130);
|
||||||
Pack.Put_Int(Msg.len());
|
Pack.Put_Byte(1);
|
||||||
Pack.Put_Binary(Msg);
|
Pack.Put_Int(Msg.len());
|
||||||
Pack.Finalize(true);
|
Pack.Put_Binary(Msg);
|
||||||
SUser.Send(Pack);
|
Pack.Finalize(true);
|
||||||
Pack.Delete();
|
SUser.Send(Pack);
|
||||||
|
Pack.Delete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue