|
@@ -705,9 +705,6 @@ ErrorCodeEnum CCardProcess::BuildSupportedAppList(CardReadType eType,DeviceBaseC
|
|
|
{
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("DevAdapter::RFTypeABCommand").setCostTime(l_endTime - l_beginTime).setResultCode("RTA2J02")("BuildSupportedAppList::RFTypeABCommand err=%s", SpStrError(eErr));
|
|
|
}
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- errMsg = CSimpleStringA::Format("BuildSupportedAppList::ICCommand 2 failed(%d):%s", eErr, errMsg.GetData());
|
|
|
- LogWarn(Severity_Middle, Error_Unexpect, errICCommand, errMsg.GetData());
|
|
|
return Error_Interact;
|
|
|
}
|
|
|
}while(!bNoMoreRec);
|
|
@@ -775,11 +772,6 @@ ErrorCodeEnum CCardProcess::BuildSupportedAppList(CardReadType eType,DeviceBaseC
|
|
|
{
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("DevAdapter::RFTypeABCommand").setCostTime(l_endTime - l_beginTime).setResultCode("RTA2J02")("BuildSupportedAppList::RFTypeABCommand err=%s", SpStrError(eErr));
|
|
|
}
|
|
|
-
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- errMsg = CSimpleStringA::Format("BuildSupportedAppList::ICCommand failed(%d):%s", eErr, errMsg.GetData());
|
|
|
- LogWarn(Severity_Middle, Error_Unexpect, errICCommand, errMsg.GetData());
|
|
|
-
|
|
|
delete[] recvBuf;
|
|
|
return Error_Interact;
|
|
|
}
|
|
@@ -970,9 +962,6 @@ Step7:
|
|
|
{
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("DevAdapter::RFTypeABCommand").setCostTime(l_endTime - l_beginTime).setResultCode("RTA2J02")("BuildAppListByAIDs::RFTypeABCommand err=%s", SpStrError(eErr));
|
|
|
}
|
|
|
- CSimpleStringA errMsg("");
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- DbgWarn(CSimpleStringA::Format("<BuildAppListByAIDs>, ICCommand failed with errCode:%d(0x%x), errMsg:%s", eErr, eErr, errMsg.GetData()));
|
|
|
return Error_Interact;
|
|
|
}
|
|
|
}
|
|
@@ -1285,9 +1274,6 @@ ErrorCodeEnum CCardProcess::ReadData(CardReadType eType,DeviceBaseClass *pCardX,
|
|
|
{
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("DevAdapter::RFTypeABCommand").setCostTime(l_endTime - l_beginTime).setResultCode("RTA2J02")("ReadData::RFTypeABCommand err=%s", SpStrError(eErr));
|
|
|
}
|
|
|
- CSimpleStringA errMsg("");
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- DbgWarn(CSimpleStringA::Format("<ReadData>, ICCommand failed with errCode:%d(0x%x), errMsg:%s", eErr, eErr, errMsg.GetData()));
|
|
|
return Error_Interact;
|
|
|
}
|
|
|
}
|
|
@@ -1500,9 +1486,6 @@ void CCardProcess::ProcessDDFRecord(CardReadType eType,DeviceBaseClass *pCardX,v
|
|
|
{
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("DevAdapter::RFTypeABCommand").setCostTime(l_endTime - l_beginTime).setResultCode("RTA2J02")("ProcessDDFRecord::RFTypeABCommand err=%s", SpStrError(eErr));
|
|
|
}
|
|
|
- CSimpleStringA errMsg("");
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- DbgWarn(CSimpleStringA::Format("<ProcessADFRecord>, ICCommand 2 failed with errCode:%d(0x%x), errMsg:%s", eErr, eErr, errMsg.GetData()));
|
|
|
break;
|
|
|
}
|
|
|
}while(!bNoMoreRec);
|
|
@@ -1530,10 +1513,6 @@ void CCardProcess::ProcessDDFRecord(CardReadType eType,DeviceBaseClass *pCardX,v
|
|
|
{
|
|
|
//DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI("DevAdapter::RFTypeABCommand").setCostTime(l_endTime - l_beginTime).setResultCode("RTA2J02")("ProcessDDFRecord::RFTypeABCommand err=%s", SpStrError(eErr));
|
|
|
}
|
|
|
-
|
|
|
- CSimpleStringA errMsg("");
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- DbgWarn(CSimpleStringA::Format("<ProcessADFRecord>, ICCommand failed with errCode:%d(0x%x), errMsg:%s", eErr, eErr, errMsg.GetData()));
|
|
|
}
|
|
|
delete[] recvBuf;
|
|
|
delete[] show;
|
|
@@ -2322,10 +2301,8 @@ void CCardProcess::ExecuteIssuerScript(CardReadType eType,DeviceBaseClass *pCard
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- CSimpleStringA errMsg;
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- DbgWarn(CSimpleStringA::Format("<ExecuteIssuerScript>, Execute script command error [%d][%d].errCode:%d, errMsg:%s",
|
|
|
- cmdRecv.data[cmdRecv.dwSize-2],cmdRecv.data[cmdRecv.dwSize-1], eErr, errMsg.GetData()));
|
|
|
+ DbgInfo(CSimpleStringA::Format("<ExecuteIssuerScript>, Execute script command error [%d][%d].errCode:%d",
|
|
|
+ cmdRecv.data[cmdRecv.dwSize-2],cmdRecv.data[cmdRecv.dwSize-1], eErr));
|
|
|
}
|
|
|
i += cmdLen;
|
|
|
}
|
|
@@ -2643,8 +2620,7 @@ bool CCardProcess::GetICDataFromCard(CardReadType eType,DeviceBaseClass *pCardX,
|
|
|
|
|
|
if (eErr != Error_Succeed)
|
|
|
{
|
|
|
- QueryLastErr(eType, errMsg);
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("BuildSupportedAppList failed(%d):%s.", eErr, errMsg.GetData());
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("BuildSupportedAppList failed(%d):%s.", eErr);
|
|
|
if(eErr == Error_Interact)
|
|
|
return false;
|
|
|
else
|