|
|
@@ -1402,6 +1402,7 @@ unsigned int CCardIssuerFSM::s19_on_event(FSMEvent* pEvt)
|
|
|
ErrorCodeEnum CCardIssuerFSM::OnInit()
|
|
|
{
|
|
|
LOG_FUNCTION();
|
|
|
+ AddStateHooker(this);
|
|
|
m_pCardProcess = new CCardProcess();
|
|
|
if (m_pCardProcess == NULL)//almost no use...
|
|
|
{
|
|
|
@@ -2173,7 +2174,7 @@ int CCardIssuerFSM::IssueCard(SpReqAnsContext<CardIssuerStoreService_IssueEx_Req
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR040222020").setResultCode("RTA2W0R")("卡箱1连续吞卡超限,请及时执行清机");
|
|
|
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, dwTmpErrCode, errMsg.GetData());
|
|
|
- ctxEx->Answer(TransECWithRepeat(Error_DevMedia), dwTmpErrCode);
|
|
|
+ ctxEx->Answer(Error_DevMedia, dwTmpErrCode);
|
|
|
return 2;
|
|
|
}
|
|
|
ErrorCodeEnum errCode;
|
|
|
@@ -3554,18 +3555,21 @@ int CCardIssuerFSM::PreOnline_Contact(SpReqAnsContext<CardIssuerStoreService_Pre
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("<PreOnline>, After invoke DetectAndReadICData, retDetectAndRead:%d, activeCardType:%d", retDetectAndRead, activeCardType);
|
|
|
if (retDetectAndRead < 0)
|
|
|
{
|
|
|
- if ((m_csMachineType.Compare("RVC.CardStore") == 0 || m_csMachineType.Compare("RVC.CardPrinter") == 0)
|
|
|
- && m_bCrossPreOnline) {
|
|
|
- if (IfUseRf()) {
|
|
|
- bContinue = true; //继续后面的非接流程
|
|
|
- }
|
|
|
- else {
|
|
|
- AfterPreOnlineOnStore(Error_Unexpect, slot);
|
|
|
- }
|
|
|
- }
|
|
|
+ //if ((m_csMachineType.Compare("RVC.CardStore") == 0 || m_csMachineType.Compare("RVC.CardPrinter") == 0)
|
|
|
+ // && m_bCrossPreOnline) {
|
|
|
+ // if (IfUseRf()) {
|
|
|
+ // bContinue = true; //继续后面的非接流程
|
|
|
+ // }
|
|
|
+ // else {
|
|
|
+ // AfterPreOnlineOnStore(Error_Unexpect, slot);
|
|
|
+ // }
|
|
|
+ //}
|
|
|
CSimpleStringA xCardName("");
|
|
|
if (m_issueStatus && m_currentHopper - 1 >= 0)
|
|
|
xCardName = m_PsbNameEx[m_currentHopper - 1];
|
|
|
+
|
|
|
+
|
|
|
+ DWORD dwUserErrCode = 0;
|
|
|
if (retDetectAndRead == -1){
|
|
|
|
|
|
ErrorCodeEnum eErrCode = Error_Unexpect;
|
|
|
@@ -3588,7 +3592,8 @@ int CCardIssuerFSM::PreOnline_Contact(SpReqAnsContext<CardIssuerStoreService_Pre
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(ApiName.GetData()).setCostTime(l_endTime - l_beginTime).setLogCode("QLR040222020").setResultCode("RTA2W0V")(csErrMsgWithReturnCode.GetData());
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, dwCode, alarmMsg.GetData());
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, dwCode);
|
|
|
+ dwUserErrCode = dwCode;
|
|
|
+ //ctx->Answer(Error_Unexpect, dwCode);
|
|
|
}
|
|
|
else {
|
|
|
//使用非接兜底
|
|
|
@@ -3610,7 +3615,8 @@ int CCardIssuerFSM::PreOnline_Contact(SpReqAnsContext<CardIssuerStoreService_Pre
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(ApiName.GetData()).setCostTime(l_endTime - l_beginTime).setLogCode("QLR040222003").setResultCode("RTA2W0M")(csErrMsgWithReturnCode.GetData());
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveICCard_Failed, alarmMsg.GetData());
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveICCard_Failed);
|
|
|
+ dwUserErrCode = CardIssuerStore_UserErrorCode_ActiveICCard_Failed;
|
|
|
+ //ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveICCard_Failed);
|
|
|
}
|
|
|
else {
|
|
|
//使用非接兜底
|
|
|
@@ -3630,7 +3636,8 @@ int CCardIssuerFSM::PreOnline_Contact(SpReqAnsContext<CardIssuerStoreService_Pre
|
|
|
else {
|
|
|
dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_ICCommand, "DevAdapter::ICCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222003", "");
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = dwTmpUserErrCode;
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
|
|
|
}
|
|
|
else {
|
|
|
@@ -3655,7 +3662,8 @@ int CCardIssuerFSM::PreOnline_Contact(SpReqAnsContext<CardIssuerStoreService_Pre
|
|
|
else {
|
|
|
dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_ICCommand, "DevAdapter::ICCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222003", "");
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = dwTmpUserErrCode;
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
|
|
|
}
|
|
|
else {
|
|
|
@@ -3669,6 +3677,19 @@ int CCardIssuerFSM::PreOnline_Contact(SpReqAnsContext<CardIssuerStoreService_Pre
|
|
|
}
|
|
|
|
|
|
}
|
|
|
+
|
|
|
+ if ((m_csMachineType.Compare("RVC.CardStore") == 0 || m_csMachineType.Compare("RVC.CardPrinter") == 0) && m_bCrossPreOnline) {
|
|
|
+ if (IfUseRf()) {
|
|
|
+ bContinue = true; //继续后面的非接流程
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ AfterPreOnlineOnStore(Error_Unexpect, slot);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!IfUseRf()){
|
|
|
+ ctx->Answer(Error_Unexpect, dwUserErrCode);
|
|
|
+ }
|
|
|
+
|
|
|
bICOK = false;
|
|
|
return 0;//读卡失败
|
|
|
}
|
|
|
@@ -3985,12 +4006,16 @@ int CCardIssuerFSM::PreOnline_RF(SpReqAnsContext<CardIssuerStoreService_PreOnlin
|
|
|
if (retDetectAndRead < 0)
|
|
|
{
|
|
|
//非接兜底需要移回卡槽
|
|
|
- if ((m_csMachineType.Compare("RVC.CardStore") == 0 || m_csMachineType.Compare("RVC.CardPrinter") == 0) && m_bCrossPreOnline) {
|
|
|
- AfterPreOnlineOnStore(Error_Unexpect, slot);//移回卡槽
|
|
|
- }
|
|
|
+ //if ((m_csMachineType.Compare("RVC.CardStore") == 0 || m_csMachineType.Compare("RVC.CardPrinter") == 0) && m_bCrossPreOnline) {
|
|
|
+ // AfterPreOnlineOnStore(Error_Unexpect, slot);//移回卡槽
|
|
|
+ //}
|
|
|
+
|
|
|
+
|
|
|
CSimpleStringA xCardName("");
|
|
|
if (m_issueStatus && m_currentHopper - 1 >= 0)
|
|
|
xCardName = m_PsbNameEx[m_currentHopper - 1];
|
|
|
+
|
|
|
+ DWORD dwUserErrCode = 0;
|
|
|
if (retDetectAndRead == -1) {
|
|
|
|
|
|
ErrorCodeEnum eErrCode = Error_Unexpect;
|
|
|
@@ -4012,7 +4037,8 @@ int CCardIssuerFSM::PreOnline_RF(SpReqAnsContext<CardIssuerStoreService_PreOnlin
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(ApiName.GetData()).setCostTime(l_endTime - l_beginTime).setLogCode("QLR040222020").setResultCode("RTA2W27")(csErrMsgWithReturnCode.GetData());
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, CardIssuerStore_UserErrorCode_IssueCard_ActiveRF_Failed, alarmMsg.GetData());
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_IssueCard_ActiveRF_Failed);
|
|
|
+ dwUserErrCode = CardIssuerStore_UserErrorCode_IssueCard_ActiveRF_Failed;
|
|
|
+ //ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_IssueCard_ActiveRF_Failed);
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
@@ -4027,7 +4053,8 @@ int CCardIssuerFSM::PreOnline_RF(SpReqAnsContext<CardIssuerStoreService_PreOnlin
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(ApiName.GetData()).setCostTime(l_endTime - l_beginTime).setLogCode("QLR040222003").setResultCode("RTA2W26")(csErrMsgWithReturnCode.GetData());
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed, alarmMsg.GetData());
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed);
|
|
|
+ dwUserErrCode = CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed;
|
|
|
+ //ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed);
|
|
|
}
|
|
|
}
|
|
|
else if (retDetectAndRead == -2) {
|
|
|
@@ -4039,7 +4066,8 @@ int CCardIssuerFSM::PreOnline_RF(SpReqAnsContext<CardIssuerStoreService_PreOnlin
|
|
|
else {
|
|
|
dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_RFTypeABCommand, "DevAdapter::RFTypeABCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222003", "");
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = dwTmpUserErrCode;
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
}
|
|
|
else if (retDetectAndRead == -3) {
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("IC卡建立应用列表失败");
|
|
|
@@ -4050,8 +4078,17 @@ int CCardIssuerFSM::PreOnline_RF(SpReqAnsContext<CardIssuerStoreService_PreOnlin
|
|
|
else {
|
|
|
dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_RFTypeABCommand, "DevAdapter::RFTypeABCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222003", "");
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = dwTmpUserErrCode;
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
}
|
|
|
+
|
|
|
+ //非接兜底需要移回卡槽
|
|
|
+ if ((m_csMachineType.Compare("RVC.CardStore") == 0 || m_csMachineType.Compare("RVC.CardPrinter") == 0) && m_bCrossPreOnline) {
|
|
|
+ AfterPreOnlineOnStore(Error_Unexpect, slot);//移回卡槽
|
|
|
+ }
|
|
|
+
|
|
|
+ ctx->Answer(Error_Unexpect, dwUserErrCode);
|
|
|
+
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
@@ -6233,9 +6270,9 @@ int CCardIssuerFSM::AddCardToStoreStepLast(SpReqAnsContext<CardIssuerStoreServic
|
|
|
m_mapJsonErr["userCode"] = JsonElem(CardIssuerStore_UserErrorCode_KakuFindEmptySlot_Failed);
|
|
|
m_mapJsonErr["tips"] = JsonElem("[RTA2W0L] 卡库找不到空闲卡槽,请联系卡库厂商排查");
|
|
|
if (m_bNewAnsError)
|
|
|
- ctx->Answer(TransECWithRepeat(Error_Unexpect), CardIssuerStore_UserErrorCode_KakuFindEmptySlot_Failed, generateJsonString(m_mapJsonErr));
|
|
|
+ ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_KakuFindEmptySlot_Failed, generateJsonString(m_mapJsonErr));
|
|
|
else
|
|
|
- ctx->Answer(TransECWithRepeat(Error_Unexpect), CardIssuerStore_UserErrorCode_KakuFindEmptySlot_Failed);
|
|
|
+ ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_KakuFindEmptySlot_Failed);
|
|
|
return 0;
|
|
|
}
|
|
|
ctx->Ans.reserved1.Init(4);
|
|
|
@@ -6620,8 +6657,8 @@ int CCardIssuerFSM::QueryCardInfoOnStore(SpReqAnsContext<CardIssuerStoreService_
|
|
|
{
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("QueryCardInfoOnStore::QuerySlotsStatus reserved1=1 fail");
|
|
|
DWORD dwTmpUserErrCode = SetErrorAndLog(eErr, MEC_DEVAPI_CARDISSUER_QuerySlotsStatus, "DevAdapter::QuerySlotsStatus", __FUNCTION__, false, l_endTime - l_beginTime, "", "");
|
|
|
- ctx->Answer(TransECWithRepeat(Error_Unexpect), dwTmpUserErrCode);
|
|
|
- //ctx->Answer(TransECWithRepeat(Error_Unexpect), GetAlarmDEC());
|
|
|
+ ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+
|
|
|
return 2;
|
|
|
}
|
|
|
else {
|
|
|
@@ -10253,10 +10290,11 @@ int CCardIssuerFSM::PreOnlineCrossJS_Contact(SpReqAnsContext<CardIssuerStoreServ
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
- CaptureResult = AfterPreOnlineCrossJS(slot, m_currCardNo);//执行移回操作
|
|
|
- m_findCard = 4;
|
|
|
- ctx->Ans.findCard = 4;
|
|
|
- ctx->Ans.cardPos = m_cardPos;
|
|
|
+ //CaptureResult = AfterPreOnlineCrossJS(slot, m_currCardNo);//执行移回操作
|
|
|
+ //m_findCard = 4;
|
|
|
+ //ctx->Ans.findCard = 4;
|
|
|
+ //ctx->Ans.cardPos = m_cardPos;
|
|
|
+ DWORD dwUserErrCode = 0;
|
|
|
if (retDetectAndRead == -1) {
|
|
|
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("跨机检测卡片类型时上电失败,slot:%d", slot);
|
|
|
@@ -10269,18 +10307,26 @@ int CCardIssuerFSM::PreOnlineCrossJS_Contact(SpReqAnsContext<CardIssuerStoreServ
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(ApiName.GetData()).setCostTime(l_endTime - l_beginTime).setLogCode("QLR040222052").setResultCode("RTA2W0M")(csErrMsgWithReturnCode.GetData());
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveICCard_Failed, alarmMsg.GetData());
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveICCard_Failed);
|
|
|
+ dwUserErrCode = CardIssuerStore_UserErrorCode_ActiveICCard_Failed;
|
|
|
+ //ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveICCard_Failed);
|
|
|
}
|
|
|
else if (retDetectAndRead == -2) {
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("跨机读取IC数据失败,slot:%d", slot);
|
|
|
- DWORD dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_ICCommand, "DevAdapter::ICCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_ICCommand, "DevAdapter::ICCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
}
|
|
|
else if (retDetectAndRead == -3) {
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("跨机读取IC数据失败,slot:%d", slot);
|
|
|
- DWORD dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_ICCommand, "DevAdapter::ICCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_ICCommand, "DevAdapter::ICCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
}
|
|
|
+
|
|
|
+ CaptureResult = AfterPreOnlineCrossJS(slot, m_currCardNo);//执行移回操作
|
|
|
+ m_findCard = 4;
|
|
|
+ ctx->Ans.findCard = 4;
|
|
|
+ ctx->Ans.cardPos = m_cardPos;
|
|
|
+
|
|
|
+ ctx->Answer(Error_Unexpect, dwUserErrCode);
|
|
|
}
|
|
|
bICOK = false;
|
|
|
return 0;//上电读卡失败
|
|
|
@@ -10591,16 +10637,17 @@ int CCardIssuerFSM::PreOnlineCrossJS_RF(SpReqAnsContext<CardIssuerStoreService_P
|
|
|
|
|
|
if (retDetectAndRead < 0)
|
|
|
{
|
|
|
- CaptureResult = AfterPreOnlineCrossJS(slot, m_currCardNo);//执行移回操作
|
|
|
- m_findCard = 4;
|
|
|
- ctx->Ans.findCard = 4;
|
|
|
- ctx->Ans.cardPos = m_cardPos;
|
|
|
+ //CaptureResult = AfterPreOnlineCrossJS(slot, m_currCardNo);//执行移回操作
|
|
|
+ //m_findCard = 4;
|
|
|
+ //ctx->Ans.findCard = 4;
|
|
|
+ //ctx->Ans.cardPos = m_cardPos;
|
|
|
|
|
|
ErrorCodeEnum eErrCode = Error_Unexpect;
|
|
|
CSimpleStringA ApiName = "";
|
|
|
CSimpleStringA alarmMsg = "";
|
|
|
CSimpleStringA csErrMsgWithReturnCode = "";
|
|
|
|
|
|
+ DWORD dwUserErrCode = 0;
|
|
|
if (retDetectAndRead == -1) {
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("跨机非接检测卡片类型时上电失败,slot:%d", slot);
|
|
|
GetCardProcessLastErr(eErrCode, ApiName, alarmMsg, csErrMsgWithReturnCode);
|
|
|
@@ -10613,18 +10660,27 @@ int CCardIssuerFSM::PreOnlineCrossJS_RF(SpReqAnsContext<CardIssuerStoreService_P
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(ApiName.GetData()).setCostTime(l_endTime - l_beginTime).setLogCode("QLR040222052").setResultCode("RTA2W26")(csErrMsgWithReturnCode.GetData());
|
|
|
LogWarn(Severity_Middle, Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed, alarmMsg.GetData());
|
|
|
}
|
|
|
- ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed);
|
|
|
+ dwUserErrCode = CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed;
|
|
|
+ //ctx->Answer(Error_Unexpect, CardIssuerStore_UserErrorCode_ActiveContactlessICCard_Failed);
|
|
|
}
|
|
|
else if (retDetectAndRead == -2) {
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("跨机非接读取IC数据失败,slot:%d", slot);
|
|
|
- DWORD dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_RFTypeABCommand, "DevAdapter::RFTypeABCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_RFTypeABCommand, "DevAdapter::RFTypeABCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
}
|
|
|
else if (retDetectAndRead == -3) {
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("跨机非接读取IC数据失败,slot:%d", slot);
|
|
|
- DWORD dwTmpUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_RFTypeABCommand, "DevAdapter::RFTypeABCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
- ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
+ dwUserErrCode = SetErrorAndLog(Error_Unexpect, MEC_DEVAPI_CARDISSUER_RFTypeABCommand, "DevAdapter::RFTypeABCommand", __FUNCTION__, IsInBusiness(), l_endTime - l_beginTime, "QLR040222052", "");
|
|
|
+ //ctx->Answer(Error_Unexpect, dwTmpUserErrCode);
|
|
|
}
|
|
|
+ CaptureResult = AfterPreOnlineCrossJS(slot, m_currCardNo);//执行移回操作
|
|
|
+ m_findCard = 4;
|
|
|
+ ctx->Ans.findCard = 4;
|
|
|
+ ctx->Ans.cardPos = m_cardPos;
|
|
|
+
|
|
|
+ ctx->Answer(Error_Unexpect, dwUserErrCode);
|
|
|
+
|
|
|
+
|
|
|
return 0;//上电读卡失败
|
|
|
}
|
|
|
|