|
@@ -436,8 +436,6 @@ int CPinPadFSM::Initial()
|
|
|
spConfig->ReadConfigValueInt("Device.PinPad", "Port", port);
|
|
|
spConfig->ReadConfigValue("Terminal", "TerminalNo", m_deviceNo);
|
|
|
spConfig->ReadConfigValue("Device.PinPad", "Checkdata", m_devCheckData);
|
|
|
- //spConfig->ReadConfigValue("Device.PinPad", "Keysn", m_keySN);
|
|
|
- //spConfig->ReadConfigValue("Device.PinPad", "KeysnSM", m_keySNSM);
|
|
|
Dbg("to load vendor dll.");
|
|
|
if (Error_Succeed != m_hDevHelper.LoadLibAddress(dllName)) {
|
|
|
Dbg("load %s failed.", (const char*)dllName);
|
|
@@ -1026,6 +1024,7 @@ Err:
|
|
|
ctx->Ans.checkcode = tmpCheckCode;
|
|
|
ctx->Ans.deviceno = m_deviceNo;
|
|
|
ctx->Ans.keyseq = m_keySN;
|
|
|
+ LogWarn(Severity_Middle, Error_Debug, LOG_EVT_PINPAD_CK_ZERO, CSimpleStringA::Format("NotSM: %s", tmpCheckCode));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -1042,6 +1041,8 @@ Err:
|
|
|
{
|
|
|
ctxSM->Ans.keyseq = m_keySNSM;
|
|
|
}
|
|
|
+ LogWarn(Severity_Middle, Error_Debug, LOG_EVT_PINPAD_CK_ZERO,
|
|
|
+ CSimpleStringA::Format("SM: {%s}{%s}", m_keySNSM.GetData(), tmpCheckCode));
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -1645,7 +1646,7 @@ int CPinPadFSM::LoadKeySM(SpReqAnsContext<PinPadService_LoadKeysSM_Req, PinPadSe
|
|
|
{
|
|
|
spConfig->WriteConfigValue("Load", "SN_SM", ctx->Req.reserved3);
|
|
|
m_keySNSM = ctx->Req.reserved3;
|
|
|
- Dbg("sm key sn:%s",(const char*)m_keySNSM);
|
|
|
+ LogWarn(Severity_Middle, Error_Debug, LOG_EVT_PINPAD_SM_SN_REFRESH, m_keySNSM);
|
|
|
}
|
|
|
}
|
|
|
if (eErr != Error_Succeed)
|