|
@@ -36,10 +36,7 @@ void CCardReadAdapterFSM::s0_on_entry()
|
|
|
m_minorVerion = sysInfo.MachineVersion.GetMinor();
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("machineType:%s,terminalNo:%s,machineVersion:%d.%d", (const char*)m_csMachineType, (const char*)m_terminalNo
|
|
|
, m_majorVerion, m_minorVerion);
|
|
|
-
|
|
|
- ///**TODO(Gifur@8/17/2023): 覆盖其他需要字段 */
|
|
|
- const auto terminInfo = SP::Module::Comm::GetTerminalMachineInfo(GetEntityBase());
|
|
|
- m_eMachineType = terminInfo.type;
|
|
|
+ m_eMachineType = SpStr2MachineType(sysInfo.strMachineType);
|
|
|
|
|
|
FSMEvent *pEvt;
|
|
|
|
|
@@ -130,7 +127,7 @@ unsigned int CCardReadAdapterFSM::s2_on_event(FSMEvent* pEvt)
|
|
|
CardReadEvent* cre = dynamic_cast<CardReadEvent*>(pEvt);
|
|
|
bool bCardIssuer, bContactlessCard;
|
|
|
bCardIssuer = bContactlessCard = false;
|
|
|
- if (m_eMachineType == SP::Module::Comm::RVC_Stand2S || m_eMachineType == SP::Module::Comm::RVC_Stand1SPlus)
|
|
|
+ if (m_eMachineType == RVC_Stand2S || m_eMachineType == RVC_Stand1SPlus)
|
|
|
{
|
|
|
ContactlessCardReadTask* cTask = new ContactlessCardReadTask(this);
|
|
|
cTask->ctx = cre->ctx;
|
|
@@ -767,7 +764,7 @@ int CCardReadAdapterFSM::CardIssuerRead(SpReqAnsContext<CardReadAdapterService_R
|
|
|
ctx->Ans.ICCardNo = ansR.ICData;
|
|
|
ctx->Ans.status = ansR.status;
|
|
|
///**TODO(Gifur@8/22/2023): 增加单屏机型判断,需要诗友确认*/
|
|
|
- if (m_eMachineType == SP::Module::Comm::RVC_Stand2S || m_eMachineType == SP::Module::Comm::RVC_Stand1SPlus)
|
|
|
+ if (m_eMachineType == RVC_Stand2S || m_eMachineType == RVC_Stand1SPlus)
|
|
|
ctx->Ans.cardPos = CardPos_CardIssuer_Stand2S;
|
|
|
else
|
|
|
ctx->Ans.cardPos = CardPos_CardIssuer_Split;
|
|
@@ -920,7 +917,7 @@ int CCardReadAdapterFSM::CardIssuerRead(SpReqAnsContext<CardReadAdapterService_R
|
|
|
ctx->Ans.ICCardNo = ansR.ICData;
|
|
|
ctx->Ans.status = ansR.status;
|
|
|
///**TODO(Gifur@8/22/2023): 增加单屏机型判断,需要诗友确认*/
|
|
|
- if (m_eMachineType == SP::Module::Comm::RVC_Stand2S || m_eMachineType == SP::Module::Comm::RVC_Stand1SPlus)
|
|
|
+ if (m_eMachineType == RVC_Stand2S || m_eMachineType == RVC_Stand1SPlus)
|
|
|
ctx->Ans.cardPos = CardPos_CardIssuer_Stand2S;
|
|
|
else
|
|
|
ctx->Ans.cardPos = CardPos_CardIssuer_Split;
|
|
@@ -1727,7 +1724,7 @@ void CCardReadAdapterFSM::CheckAndReconnectSession()
|
|
|
}
|
|
|
}
|
|
|
//ContactlessCard
|
|
|
- if ((m_eMachineType != SP::Module::Comm::RVC_CardStore && m_eMachineType != SP::Module::Comm::RVC_CardPrinter)
|
|
|
+ if ((m_eMachineType != RVC_CardStore && m_eMachineType != RVC_CardPrinter)
|
|
|
&& (m_pContactless == NULL || (m_pContactless != NULL && m_pContactless->QuerySessionClosed())))
|
|
|
{
|
|
|
if (m_pContactless != NULL)
|
|
@@ -1792,10 +1789,10 @@ bool CCardReadAdapterFSM::IsTheEntity(int module,ModuleType eModule)
|
|
|
|
|
|
if (eModule == Module_CardIssuer)
|
|
|
{
|
|
|
- if (m_eMachineType == SP::Module::Comm::RVC_Stand2S
|
|
|
- || m_eMachineType == SP::Module::Comm::RVC_CardStore
|
|
|
- || m_eMachineType == SP::Module::Comm::RVC_CardPrinter
|
|
|
- || m_eMachineType == SP::Module::Comm::RVC_Stand1SPlus)
|
|
|
+ if (m_eMachineType == RVC_Stand2S
|
|
|
+ || m_eMachineType == RVC_CardStore
|
|
|
+ || m_eMachineType == RVC_CardPrinter
|
|
|
+ || m_eMachineType == RVC_Stand1SPlus)
|
|
|
return true;
|
|
|
else
|
|
|
return false;
|