Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hnxtbaboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨亮
hnxtbaboot
Commits
3e063805
Commit
3e063805
authored
Jun 23, 2021
by
yangliang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加万里红虹膜采集
parent
1fbb1a46
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
src/main/java/com/founder/controller/HmCjController.java
+10
-11
src/main/resources/static/hmcj/js/hmcj_wlh.js
+6
-5
src/main/resources/templates/hmcj/wlh.html
+5
-0
No files found.
src/main/java/com/founder/controller/HmCjController.java
View file @
3e063805
...
...
@@ -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
,
1
0
)+
"-"
+
sfzh
.
substring
(
10
,
12
)+
"-"
+
sfzh
.
substring
(
12
,
1
4
));
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
;
...
...
src/main/resources/static/hmcj/js/hmcj_wlh.js
View file @
3e063805
...
...
@@ -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
{
...
...
src/main/resources/templates/hmcj/wlh.html
View file @
3e063805
...
...
@@ -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;"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment