浏览代码

#IQRV #comment [Module] 补充序列化反序列化的日志,同步物料计数实体异常

gifur 4 年之前
父节点
当前提交
b89e56ef19
共有 2 个文件被更改,包括 5 次插入0 次删除
  1. 3 0
      Module/mod_guiconsole/GUIConsole_server_g.h
  2. 2 0
      Module/mod_guiconsole/mod_guiconsole.cpp

+ 3 - 0
Module/mod_guiconsole/GUIConsole_server_g.h

@@ -311,9 +311,12 @@ public:
 					break;
 				case GUIConsoleService_Method_SyncMaterialCount:
 					{
+						Dbg("GUIConsoleService_Method_SyncMaterialCount method signature received!");
 						SpOnewayCallContext<GUIConsoleService_SyncMaterialCount_Info>::Pointer ctx;
 						ctx.Attach(new SpOnewayCallContext<GUIConsoleService_SyncMaterialCount_Info>());
+                        Dbg("pre SpBuffer2Object");
 						SpBuffer2Object(Buf, ctx->Info);
+						Dbg("after SpBuffer2Object");
 						Handle_SyncMaterialCount(ctx);
 					}
 					break;

+ 2 - 0
Module/mod_guiconsole/mod_guiconsole.cpp

@@ -619,6 +619,8 @@ void CGUIConsoleSession::Handle_RegistSwallowedCard(SpReqAnsContext<GUIConsoleSe
 
 void CGUIConsoleSession::Handle_SyncMaterialCount(SpOnewayCallContext<GUIConsoleService_SyncMaterialCount_Info>::Pointer ctx)
 {
+	LOG_FUNCTION();
+
 	m_pEntity->SyncMaterialCount(ctx->Info.strDeviceNo, ctx->Info.dwCardBoxNum, ctx->Info.arrMaintainFlag,
 		ctx->Info.arrMaintainer, ctx->Info.arrMaintainTime, ctx->Info.arrCardBoxNo, ctx->Info.arrPsbCode,
 		ctx->Info.arrPsbName, ctx->Info.arrCardInit, ctx->Info.arrCardRemains, ctx->Info.arrCardIssued,