Ver Fonte

Z991239-6316 #comment feat: 精简卡库js日志

Signed-Off-By: commit-hook
刘文涛80174520 há 5 meses atrás
pai
commit
ced4b0fd6d
1 ficheiros alterados com 9 adições e 9 exclusões
  1. 9 9
      Module/mod_cardissuerstore/mod_cardissuerStore.cpp

+ 9 - 9
Module/mod_cardissuerstore/mod_cardissuerStore.cpp

@@ -163,7 +163,7 @@ void CardIssuerStoreServerSession::Handle_CaptureJS(SpReqAnsContext<CardIssuerSt
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke CaptureJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke CaptureJS, captureCode:%s",ctx->Req.captureCode.GetData());
 	m_pEntity->CaptureJS(ctx);
 }
 //区间盘库
@@ -195,7 +195,7 @@ void CardIssuerStoreServerSession::Handle_MoveAndReadCardFromSlotJS(SpReqAnsCont
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveAndReadCardFromSlotJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveAndReadCardFromSlotJS, slot:%d",ctx->Req.slot);
 	m_pEntity->MoveAndReadCardFromSlotJS(ctx);
 }
 //移回卡槽
@@ -203,7 +203,7 @@ void CardIssuerStoreServerSession::Handle_MoveBacktoSlotJS(SpReqAnsContext<CardI
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveBacktoSlotJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveBacktoSlotJS, slot:%d",ctx->Req.slot);
 	m_pEntity->MoveBacktoSlotJS(ctx);
 }
 
@@ -265,7 +265,7 @@ void CardIssuerStoreServerSession::Handle_ICCommandJS(SpReqAnsContext<CardIssuer
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ICCommandJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ICCommandJS, cmdType:%d",ctx->Req.cmdType);
 	m_pEntity->ICCommandJS(ctx);
 }
 
@@ -274,7 +274,7 @@ void CardIssuerStoreServerSession::Handle_PostOnlineJS(SpReqAnsContext<CardIssue
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PostOnlineJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PostOnlineJS, data:%s",ctx->Req.data.GetData());
 	m_pEntity->PostOnlineJS(ctx);
 }
 
@@ -283,7 +283,7 @@ void CardIssuerStoreServerSession::Handle_IssueFromBoxJS(SpReqAnsContext<CardIss
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke IssueFromBoxJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke IssueFromBoxJS, hopper:%d",ctx->Req.hopper);
 	m_pEntity->IssueFromBoxJS(ctx);
 }
 
@@ -292,7 +292,7 @@ void CardIssuerStoreServerSession::Handle_PreOnlineCrossJS(SpReqAnsContext<CardI
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PreOnlineCrossJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PreOnlineCrossJS, slot:%d, businessData:%s",ctx->Req.slot, ctx->Req.businessData.GetData());
 	m_pEntity->PreOnlineCrossJS(ctx);
 }
 
@@ -301,7 +301,7 @@ void CardIssuerStoreServerSession::Handle_ReadJS(SpReqAnsContext<CardIssuerStore
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ReadJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ReadJS, aid:%s, businessData:%s",ctx->Req.aid.GetData(), ctx->Req.businessData.GetData());
 	m_pEntity->ReadJS(ctx);
 }
 
@@ -319,7 +319,7 @@ void CardIssuerStoreServerSession::Handle_MoveCardFromSlotJS(SpReqAnsContext<Car
 {
 	LOG_FUNCTION();
 	DbgToBeidou(ctx->link, __FUNCTION__)();
-	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveCardFromSlotJS");
+	DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveCardFromSlotJS, slot:%d",ctx->Req.slot);
 	m_pEntity->MoveCardFromSlotJS(ctx);
 }