Commit 3e063805 by yangliang

增加万里红虹膜采集

parent 1fbb1a46
......@@ -705,13 +705,16 @@ public class HmCjController {
// }
//}
if(urlstr==null||"".equals(urlstr)){
urlstr = "http://124.192.224.46:9017/special/uploadFZKJ";
//urlstr = "http://124.192.224.46:9017/special/uploadFZKJ";
urlstr = "http://65.194.135.157:9017/special/uploadFZKJ";
}
User user = (User) request.getSession().getAttribute("User");
Map<String, Object> res = new HashMap<>();
res.put("appID", "HuNSDK");
res.put("appPWD", "HuNSDK12345");
//res.put("appID", "HuNSDK");
//res.put("appPWD", "HuNSDK12345");
res.put("appID", "HuNSDKxt");
res.put("appPWD", "HuNSDKxt12345");
res.put("version","1.0");
Date d = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
......@@ -724,8 +727,8 @@ public class HmCjController {
}
res.put("ywfssj","20210615100928");
res.put("user_id",user.getIdentitycard());
//res.put("user_dept",user.getUnitcode());
res.put("user_dept","881000000000");
res.put("user_dept",user.getUnitcode());
//res.put("user_dept","881000000000");
String unitname = dicItemService.queryNameByCode(user.getUnitcode(), "CODE_UNIT");
if(unitname==null||"".equals(unitname)){
unitname = "湖南省公安厅";
......@@ -739,14 +742,11 @@ public class HmCjController {
res.put("sbxh","05");
if(hmxxs.get(0).getSbbh()==null||"".equals(hmxxs.get(0).getSbbh())){
//res.put("sbbh","IKUSB-E30_IKH1103256");//虹霸测试用设备编号
res.put("sbbh","JD60600528");
hmxxs.get(0).setSbbh("JD60600528");
}else{
res.put("sbbh",hmxxs.get(0).getSbbh());
}
//res.put("sbbh","ECI102");//眼神测试用设备编号
//hmxxs.get(0).setSbbh("ECI102");
res.put("cjcd","11");
res.put("dzmc","株洲市");
......@@ -783,7 +783,7 @@ public class HmCjController {
res.put("bcjr_zjhm",sfzh);
res.put("bcjr_xm",xyrC.getXm());
res.put("bcjr_xb",xyrC.getXbdm());
res.put("bcjr_csrq",sfzh.substring(6,14));
res.put("bcjr_csrq",sfzh.substring(6,10)+"-"+sfzh.substring(10,12)+"-"+sfzh.substring(12,14));
res.put("bcjr_mz",xyrC.getMzdm());
res.put("bcjr_gj",xyrC.getGjdm());
res.put("bcjr_zjqfjg","");
......@@ -793,8 +793,7 @@ public class HmCjController {
res.put("bcjr_sjhm1",xyrC.getLxdm());
res.put("bcjr_sjhm2",xyrC.getLxdm2());
res.put("zjzp",xyrC.getEdzzpStr64());
JSONObject jsonResult= FileUtils.requestByPost(urlstr,res);//虹霸
//JSONObject jsonResult = FileUtils.requestByPost("http://xingzhen.eyecool.cn/iris/regIris",res);//眼神科技
JSONObject jsonResult= FileUtils.requestByPost(urlstr,res);
System.out.println(jsonResult.toJSONString());
boolean bool = true;
return bool;
......
......@@ -62,20 +62,21 @@ function jsonp( options ) {
document.getElementById(leftid).src ="data:image/jpeg;base64," + response["hmzp_zy_zip"];
document.getElementById(rightid).src ="data:image/jpeg;base64," + response["hmzp_yy_zip"];
alert("右:"+response["hmzp_yy_zip"]);
alert("右1:"+response["hmzp_yy"]);
document.getElementById("hmqsqkRight").value = "0";
document.getElementById("hmsjRight").value = response["hmzp_yy_zip"];
window.opener.document.getElementById("imghead22").src="data:image/jpeg;base64," + response["hmzp_yy_zip"];
$("#hmsjRight").val(response["hmzp_yy_zip"]);
$("#hmsjRight").val(response["hmzp_yy"]);
$("#rightEye").attr("src","data:image/jpeg;base64," + response["hmzp_yy_zip"])
$("#rightSelect option[value='1']").prop("selected", true);
$("#rightSelect option[value='0']").prop("selected", true);
alert("左:"+response["hmzp_zy_zip"]);
alert("左1:"+response["hmzp_zy"]);
document.getElementById("hmqsqkLeft").value = "0";
document.getElementById("hmsjLeft").value = response["hmzp_zy_zip"];
window.opener.document.getElementById("imghead21").src="data:image/jpeg;base64," + response["hmzp_zy_zip"];
$("#hmsjLeft").val(response["hmzp_zy_zip"]);
$("#hmsjLeft").val(response["hmzp_zy"]);
$("#leftEye").attr("src","data:image/jpeg;base64," + response["hmzp_zy_zip"])
$("#leftSelect option[value='1']").prop("selected", true);
$("#leftSelect option[value='0']").prop("selected", true);
irisData=response;
window.dispatchEvent(myEvent);
}else{
......
......@@ -121,6 +121,11 @@
<button type="button" class="btn_style" id="baocun" onclick="wlhbaocun()">保存</button>
</td>
</tr>
<tr>
<td colspan="3" style="text-align: center">
<button type="button" class="btn_style" id="hmts" onclick="wlhhmts()()">虹膜推送</button>
</td>
</tr>
</table>
</td>
<td class="display_panel" style="display: block;">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment