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
f17e0f2c
Commit
f17e0f2c
authored
Jan 21, 2025
by
霍传世
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HaiNa---接口
parent
03f27249
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/main/java/com/yuda/hainafacetofaceai/controller/FaceMatchController.java
...uda/hainafacetofaceai/controller/FaceMatchController.java
+3
-1
src/main/java/com/yuda/hainafacetofaceai/util/CosUtil.java
src/main/java/com/yuda/hainafacetofaceai/util/CosUtil.java
+1
-0
No files found.
src/main/java/com/yuda/hainafacetofaceai/controller/FaceMatchController.java
View file @
f17e0f2c
...
...
@@ -41,7 +41,9 @@ public class FaceMatchController {
}
}
@PostMapping
(
"/faceMatch/{examConnectionCode}/{idCard}/{zkzNum}"
)
public
ResponseEntity
faceMatch
(
@PathVariable
String
idCard
,
@PathVariable
String
examConnectionCode
,
@PathVariable
String
zkzNum
,
@RequestParam
(
"picName"
)
String
picName
){
public
ResponseEntity
faceMatch
(
@PathVariable
String
idCard
,
@PathVariable
String
examConnectionCode
,
@PathVariable
String
zkzNum
,
@RequestBody
String
picName
){
JSONObject
object
=
new
JSONObject
(
picName
);
picName
=
object
.
getString
(
"picName"
);
log
.
info
(
"faceMatch正在校验-》身份证号:"
+
idCard
+
"参加面试编号:"
+
examConnectionCode
+
"_人脸照片"
);
String
message
=
""
;
if
(
check
(
examConnectionCode
,
idCard
,
message
)){
...
...
src/main/java/com/yuda/hainafacetofaceai/util/CosUtil.java
View file @
f17e0f2c
...
...
@@ -46,6 +46,7 @@ public class CosUtil {
config
.
put
(
"bucket"
,
bucket
);
config
.
put
(
"region"
,
region
);
config
.
put
(
"allowPrefix"
,
"*"
);
config
.
put
(
"allowOrigins"
,
"*"
);
String
[]
allowActions
=
new
String
[]{
"name/cos:PutObject"
,
"name/cos:PostObject"
,
...
...
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