From 2adf9f32a1e56c00685dc1e633b8e6fae99c8dde Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 14 十二月 2018 17:36:02 +0800
Subject: [PATCH] 5398 【前端】【1.4】跨服竞技场开发

---
 Core/NetworkPackage/Socket/ClientSocket.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Core/NetworkPackage/Socket/ClientSocket.cs b/Core/NetworkPackage/Socket/ClientSocket.cs
index 55c717a..fec172d 100644
--- a/Core/NetworkPackage/Socket/ClientSocket.cs
+++ b/Core/NetworkPackage/Socket/ClientSocket.cs
@@ -275,7 +275,7 @@
                 var cmd = (ushort)((ushort)(vCmdBytes[0] << 8) + vCmdBytes[1]);
                 if (PackageRegedit.Contain(cmd))
                 {
-                    vNetpack = PackageRegedit.TransPack(cmd, vPackBytes);
+                    vNetpack = PackageRegedit.TransPack(socketType,cmd, vPackBytes);
                     if (vNetpack != null)
                     {
                         if (DebugEx.EnableNetLog)
@@ -291,7 +291,7 @@
                 else
                 {
 #if UNITY_EDITOR
-                    PackageRegedit.TransPack(cmd, vPackBytes);
+                    PackageRegedit.TransPack(socketType, cmd, vPackBytes);
 #endif
                     CSharpCallLua.OnRecieveLuaNetPackage(cmd, vPackBytes);
                 }
@@ -333,7 +333,7 @@
         }
         protocol.CombineDatas(encoder);
 #if UNITY_EDITOR
-        NetPkgCtl.AddNetPkg(protocol.vInfoCont, NetPkgType.Client, protocol.ToString(), FieldPrint.PrintFields(protocol), FieldPrint.PrintFieldsExpand(protocol, true));
+        NetPkgCtl.AddNetPkg(socketType, protocol.vInfoCont, NetPkgType.Client, protocol.ToString(), FieldPrint.PrintFields(protocol), FieldPrint.PrintFieldsExpand(protocol, true));
 #endif
         sendBytesTotal += protocol.combineBytes.Length;
         SendBytes(protocol.combineBytes);

--
Gitblit v1.8.0