|
@@ -224,7 +224,7 @@ unsigned int CIDCertFSM::s1_on_event(FSMEvent *pEvt)
|
|
|
{
|
|
|
case USER_EVT_CANCEL_READ:
|
|
|
pEvt->SetHandled();
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("Set cancel read flag");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM).setAPI(__FUNCTION__)("Set cancel read flag");
|
|
|
m_bCancelRead = true;
|
|
|
break;
|
|
|
case USER_EVT_EXIT:
|
|
@@ -1645,12 +1645,6 @@ void CIDCertFSM::CopyIDCerDataToCtx(IDCerInfoEx2 idInfoEx2, T& ctx)
|
|
|
//转换头像图片
|
|
|
GetPngBlobEx(ctx->Ans.headphoto, "zp");
|
|
|
|
|
|
- if (utf8Data != nullptr)
|
|
|
- {
|
|
|
- delete utf8Data;
|
|
|
- utf8Data = nullptr;
|
|
|
- }
|
|
|
-
|
|
|
#ifdef RVC_OS_WIN
|
|
|
CSimpleStringA csIDLogInfo = CSimpleStringA::Format("IDNo:%s****%s"
|
|
|
, (const char*)CSimpleStringA(GetGBKString((UINT16*)idInfoEx2.idno.data)).SubString(0, 4)
|
|
@@ -1662,6 +1656,12 @@ void CIDCertFSM::CopyIDCerDataToCtx(IDCerInfoEx2 idInfoEx2, T& ctx)
|
|
|
#endif
|
|
|
LogWarn(Severity_Low, Error_Succeed, IDCertificate_UserErrorCode_ReadAndScan_GetIDInfo, csIDLogInfo.GetData());
|
|
|
|
|
|
+ if (utf8Data != nullptr)
|
|
|
+ {
|
|
|
+ delete utf8Data;
|
|
|
+ utf8Data = nullptr;
|
|
|
+ }
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
|