Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
HaiNaAIFaceToFace
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
霍传世
HaiNaAIFaceToFace
Commits
03f27249
Commit
03f27249
authored
Jan 21, 2025
by
霍传世
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HaiNa---接口
parent
c97788c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/main/java/com/yuda/hainafacetofaceai/controller/CommitmentLetterController.java
...nafacetofaceai/controller/CommitmentLetterController.java
+1
-1
src/main/java/com/yuda/hainafacetofaceai/controller/FaceMatchController.java
...uda/hainafacetofaceai/controller/FaceMatchController.java
+3
-3
No files found.
src/main/java/com/yuda/hainafacetofaceai/controller/CommitmentLetterController.java
View file @
03f27249
...
@@ -35,7 +35,7 @@ public class CommitmentLetterController {
...
@@ -35,7 +35,7 @@ public class CommitmentLetterController {
JSONObject
responseBody
=
new
JSONObject
();
JSONObject
responseBody
=
new
JSONObject
();
responseBody
.
put
(
"code"
,
500
);
responseBody
.
put
(
"code"
,
500
);
responseBody
.
put
(
"message"
,
"承诺书上传失败"
);
responseBody
.
put
(
"message"
,
"承诺书上传失败"
);
return
ResponseEntity
.
badRequest
().
body
(
responseBody
);
return
ResponseEntity
.
badRequest
().
body
(
responseBody
.
toString
()
);
}
}
}
}
}
}
src/main/java/com/yuda/hainafacetofaceai/controller/FaceMatchController.java
View file @
03f27249
...
@@ -31,13 +31,13 @@ public class FaceMatchController {
...
@@ -31,13 +31,13 @@ public class FaceMatchController {
JSONObject
responseBody
=
new
JSONObject
();
JSONObject
responseBody
=
new
JSONObject
();
responseBody
.
put
(
"code"
,
200
);
responseBody
.
put
(
"code"
,
200
);
responseBody
.
put
(
"message"
,
"上传成功"
);
responseBody
.
put
(
"message"
,
"上传成功"
);
return
ResponseEntity
.
ok
(
responseBody
);
return
ResponseEntity
.
ok
(
responseBody
.
toString
()
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
log
.
info
(
"准考证:"
+
zkzNum
+
"参加面试编号:"
+
examConnectionCode
+
"上传实时人脸照片失败"
);
log
.
info
(
"准考证:"
+
zkzNum
+
"参加面试编号:"
+
examConnectionCode
+
"上传实时人脸照片失败"
);
JSONObject
responseBody
=
new
JSONObject
();
JSONObject
responseBody
=
new
JSONObject
();
responseBody
.
put
(
"code"
,
500
);
responseBody
.
put
(
"code"
,
500
);
responseBody
.
put
(
"message"
,
"上传人脸照片失败"
);
responseBody
.
put
(
"message"
,
"上传人脸照片失败"
);
return
ResponseEntity
.
badRequest
().
body
(
new
JSONObject
()
.
toString
());
return
ResponseEntity
.
badRequest
().
body
(
responseBody
.
toString
());
}
}
}
}
@PostMapping
(
"/faceMatch/{examConnectionCode}/{idCard}/{zkzNum}"
)
@PostMapping
(
"/faceMatch/{examConnectionCode}/{idCard}/{zkzNum}"
)
...
@@ -48,7 +48,7 @@ public class FaceMatchController {
...
@@ -48,7 +48,7 @@ public class FaceMatchController {
JSONObject
responseBody
=
new
JSONObject
();
JSONObject
responseBody
=
new
JSONObject
();
responseBody
.
put
(
"code"
,
500
);
responseBody
.
put
(
"code"
,
500
);
responseBody
.
put
(
"message"
,
message
);
responseBody
.
put
(
"message"
,
message
);
return
ResponseEntity
.
badRequest
().
body
(
responseBody
);
return
ResponseEntity
.
badRequest
().
body
(
responseBody
.
toString
()
);
}
}
String
[]
result
=
faceMatch
.
faceMatchBaidu
(
idCard
,
picName
);
String
[]
result
=
faceMatch
.
faceMatchBaidu
(
idCard
,
picName
);
if
(
result
[
0
].
equals
(
"1"
)){
if
(
result
[
0
].
equals
(
"1"
)){
...
...
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