Browse Source

#IQRV #comment: 恢复卡库卡机兼容

陈纪林80310970 5 tháng trước cách đây
mục cha
commit
8a0ae52d67
1 tập tin đã thay đổi với 9 bổ sung0 xóa
  1. 9 0
      Module/mod_vtmloader/VtmLoaderFSM.cpp

+ 9 - 0
Module/mod_vtmloader/VtmLoaderFSM.cpp

@@ -1974,6 +1974,15 @@ void CVtmLoaderFSM::CheckDeviceEntity(SpReqAnsContext<VtmLoaderService_CheckDevi
 	CEntityStaticInfo staticInfo;
 	ErrorCodeEnum eErrCode = Error_Unexpect;
 	CSimpleStringA csEntityName = ctx->Req.entityName;
+
+	//oiltmp@20240415 to be delete after x months
+	if (ctx->Req.entityName.Compare("CardIssuer") == 0)
+	{
+		if (m_sysInfo.strMachineType.Compare("RVC.CardStore") == 0 || m_sysInfo.strMachineType.Compare("RVC.CardPrinter") == 0)
+			csEntityName = "CardIssuerStore";
+		else
+			csEntityName = "CardIssuerStand";
+	}
 	
 	if ((eErrCode = m_pEntity->GetFunction()->GetEntityStaticInfo(csEntityName.GetData(), staticInfo)) != Error_Succeed)
 	{