Explorar o código

#IQRV #comment [BugFix][PinPad] 杜绝告警不加任何前缀,直接输入变量内容

gifur %!s(int64=3) %!d(string=hai) anos
pai
achega
ccd1f8be40
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Module/mod_pinpad/PinPadFSM.cpp

+ 2 - 1
Module/mod_pinpad/PinPadFSM.cpp

@@ -1666,7 +1666,8 @@ int CPinPadFSM::LoadKeySM(SpReqAnsContext<PinPadService_LoadKeysSM_Req, PinPadSe
 			{
 				spConfig->WriteConfigValue("Load", "SN_SM", ctx->Req.reserved3);
 				m_keySNSM = ctx->Req.reserved3;
-				LogWarn(Severity_Middle, Error_Debug, LOG_EVT_PINPAD_SM_SN_REFRESH, m_keySNSM);
+				LogWarn(Severity_Middle, Error_Debug, LOG_EVT_PINPAD_SM_SN_REFRESH, 
+						CSimpleStringA::Format("{\"type\": \"SN_SM\", \"value\": \"%s\"}", m_keySNSM.GetData()));
 			}
 		}
 		if (eErr != Error_Succeed)