Browse Source

Z991239-6293 #comment feat: 去除JS接口冗余字段

陈纪林80310970 3 months ago
parent
commit
e4b702ab41

+ 2 - 1
Module/mod_IDCertificate/IDCertFSM.cpp

@@ -498,6 +498,7 @@ int CIDCertFSM::ReadAndScanUTF8(SpReqAnsContext<IDCert_ReadAndScanUTF8_Req, IDCe
 	LOG_FUNCTION();
 	DeleteZP(Bmp_ZP | Bmp_SCAN, 1); //清理图片文件
 
+	//记录身份证相关图片的最近修改时间,用于上送信息调研,后续下掉 - 2025.6.13 CJL
 	headPhotoTime.Clear();
 	frontPhotoTime.Clear();
 	backPhotoTime.Clear();
@@ -585,7 +586,7 @@ int CIDCertFSM::ReadAndScanUTF8(SpReqAnsContext<IDCert_ReadAndScanUTF8_Req, IDCe
 
 					//转换数据并赋值至传出字段
 					CopyIDCerDataToCtx(idInfoEx2, ctx);
-					ctx->Ans.photodata = ctx->Ans.headphoto; //现接口继续保持复制图片,待后续JS改造下掉photodata字段
+					ctx->Ans.photodata = ctx->Ans.headphoto; //现接口继续保持复制图片,JS接口下掉photodata字段 - 2025.6.17
 
 					ctx->Ans.hasscan = 0;
 					if (igestionVer == TRUE) //吸入式设备才调用正反扫描功能

+ 1 - 3
Module/mod_IDCertificate/IDCertificate_def_g.h

@@ -127,9 +127,7 @@ struct IDCertService_ReadAndScanUTF8JS_Req
 
 struct IDCertService_ReadAndScanUTF8JS_Ans
 {
-	int msgtype;
 	int hasscan;
-	CBlob photodata;
 	CBlob frontphoto;
 	CBlob backphoto;
 	CBlob headphoto;
@@ -157,7 +155,7 @@ struct IDCertService_ReadAndScanUTF8JS_Ans
 
 	void Serialize(SpBuffer &Buf)
 	{
-		auto & buf = Buf & msgtype & hasscan & photodata & frontphoto & backphoto & headphoto & finger1 & finger2 & imgreserved1 & imgreserved2 & reserved1 & reserved2 & name_utf8 & sex_utf8 & nation_utf8 & birthday_utf8 & address_utf8 & idcode_utf8 & department_utf8 & startdate_utf8 & enddate_utf8 & englishname_utf8 & nationality_utf8 & idversion_utf8 & idtype_utf8 & othercode_utf8 & reserved_utf8;
+		auto & buf = Buf & hasscan & frontphoto & backphoto & headphoto & finger1 & finger2 & imgreserved1 & imgreserved2 & reserved1 & reserved2 & name_utf8 & sex_utf8 & nation_utf8 & birthday_utf8 & address_utf8 & idcode_utf8 & department_utf8 & startdate_utf8 & enddate_utf8 & englishname_utf8 & nationality_utf8 & idversion_utf8 & idtype_utf8 & othercode_utf8 & reserved_utf8;
 	}
 
 };