|
@@ -578,7 +578,7 @@ ErrorCodeEnum CIDCertFSM::OnInit()
|
|
|
#endif
|
|
|
|
|
|
supportUCS2 = FALSE;
|
|
|
-
|
|
|
+ igestionVer = FALSE;
|
|
|
return Error_Succeed;
|
|
|
}
|
|
|
ErrorCodeEnum CIDCertFSM::OnExit()
|
|
@@ -975,13 +975,16 @@ int CIDCertFSM::ReadAndScan(SpReqAnsContext<IDCert_ReadAndScan_Req, IDCert_ReadA
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- CSimpleStringA warnMsg = "ScanIDAndSaveImage() suc. But GetPngBlobEx() failed.";
|
|
|
- if (transImgMsg.GetLength() != 0)
|
|
|
+ if (igestionVer == TRUE)
|
|
|
{
|
|
|
- warnMsg = warnMsg + transImgMsg;
|
|
|
+ CSimpleStringA warnMsg = "ScanIDAndSaveImage() suc. But GetPngBlobEx() failed.";
|
|
|
+ if (transImgMsg.GetLength() != 0)
|
|
|
+ {
|
|
|
+ warnMsg = warnMsg + transImgMsg;
|
|
|
+ }
|
|
|
+ LogWarn(Severity_Middle, Error_Succeed,
|
|
|
+ IDCertificate_UserErrorCode_ReadAndScan_TransImgFaild, warnMsg.GetData());
|
|
|
}
|
|
|
- LogWarn(Severity_Middle, Error_Succeed,
|
|
|
- IDCertificate_UserErrorCode_ReadAndScan_TransImgFaild, warnMsg.GetData());
|
|
|
}
|
|
|
}
|
|
|
GetPngBlobEx(ctx->Ans.headphoto, "zp", true);
|
|
@@ -1524,13 +1527,16 @@ int CIDCertFSM::ReadAndScanUTF8(SpReqAnsContext<IDCert_ReadAndScanUTF8_Req, IDCe
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- CSimpleStringA warnMsg = "ScanIDAndSaveImage() suc. But GetPngBlobEx() failed.";
|
|
|
- if (transImgMsg.GetLength() != 0)
|
|
|
+ if (igestionVer == true)
|
|
|
{
|
|
|
- warnMsg = warnMsg + transImgMsg;
|
|
|
+ CSimpleStringA warnMsg = "ScanIDAndSaveImage() suc. But GetPngBlobEx() failed.";
|
|
|
+ if (transImgMsg.GetLength() != 0)
|
|
|
+ {
|
|
|
+ warnMsg = warnMsg + transImgMsg;
|
|
|
+ }
|
|
|
+ LogWarn(Severity_Middle, Error_Succeed,
|
|
|
+ IDCertificate_UserErrorCode_ReadAndScan_TransImgFaild, warnMsg.GetData());
|
|
|
}
|
|
|
- LogWarn(Severity_Middle, Error_Succeed,
|
|
|
- IDCertificate_UserErrorCode_ReadAndScan_TransImgFaild, warnMsg.GetData());
|
|
|
}
|
|
|
}
|
|
|
GetPngBlobEx(ctx->Ans.headphoto, "zp", true);
|
|
@@ -2128,6 +2134,13 @@ int CIDCertFSM::Initial() //windows ver
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("测试为UCS2新库。");
|
|
|
supportUCS2 = TRUE;
|
|
|
}
|
|
|
+
|
|
|
+ if (strstr(m_devCatInfo.szModel, "STYLE=IG") != NULL)
|
|
|
+ {
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("吸入式设备");
|
|
|
+ igestionVer = TRUE;
|
|
|
+ }
|
|
|
+
|
|
|
m_adapterInfo.FulfillCategoryInfo(m_devCatInfo);
|
|
|
}else{
|
|
|
SetErrPackage("Initial::GetDevCategory", m_devSN, eErrDev, MEC_DEVAPI_IDCER_GetDevCategory);
|
|
@@ -2263,6 +2276,13 @@ int CIDCertFSM::Initial() //linux ver
|
|
|
DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("测试为UCS2新库。");
|
|
|
supportUCS2 = TRUE;
|
|
|
}
|
|
|
+
|
|
|
+ if (strstr(m_devCatInfo.szModel, "STYLE=IG") != NULL)
|
|
|
+ {
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("吸入式设备");
|
|
|
+ igestionVer = TRUE;
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
else {
|
|
|
SetErrPackage("Initial::GetDevCategory", m_devSN, err, MEC_DEVAPI_IDCER_GetDevCategory);
|