Browse Source

Z991239-1880 #comment 扫描证件失败或找不到图像就退出读证

80296915 4 years ago
parent
commit
f5a2311af9
1 changed files with 10 additions and 0 deletions
  1. 10 0
      Module/mod_IDCertificate/IDCertFSM.cpp

+ 10 - 0
Module/mod_IDCertificate/IDCertFSM.cpp

@@ -838,6 +838,16 @@ int CIDCertFSM::ReadAndScan(SpReqAnsContext<IDCert_ReadAndScan_Req, IDCert_ReadA
 						
 						if (eErrFront == Error_Succeed && eErrBack == Error_Succeed)
 							ctx->Ans.hasscan = 1;
+						else
+						{
+							Dbg("Load bmp pic failed.");
+							break;
+						}
+					}
+					else
+					{
+						Dbg("Scan image failed.");
+						break;
 					}
 					GetPngBlobEx(ctx->Ans.headphoto, "zp", true);