Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-golf-mobile
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
84031931
authored
Apr 07, 2020
by
zhangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
封装人脸上传一张
parent
44490670
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
src/main/java/com/ctrip/fun/golf/api/user/UserMController.java
src/main/java/com/ctrip/fun/golf/api/user/UserMController.java
View file @
84031931
...
@@ -227,6 +227,28 @@ public class UserMController {
...
@@ -227,6 +227,28 @@ public class UserMController {
return
null
;
return
null
;
}
}
/**
* 验证客户是否已有人脸底图
* @param token
* @param request
* @return
*/
@SuppressWarnings
(
"deprecation"
)
@RequestMapping
(
value
=
"/v1/users/imageFlag/{token}"
,
method
=
RequestMethod
.
POST
)
@Security
@ResponseBody
public
Object
imageFlag
(
@PathVariable
String
token
)
{
//Response<Object> response = new Response<Object>();
Map
<
Object
,
Object
>
map
=
new
HashMap
<
Object
,
Object
>();
String
faceImageFlag
=
this
.
userMService
.
getUserBean
(
token
).
getFaceImage
();
if
(!
""
.
equals
(
faceImageFlag
)&&
faceImageFlag
!=
null
){
map
.
put
(
"code"
,
1
);
return
JSON
.
toJSONString
(
map
);
}
return
null
;
}
@RequestMapping
(
value
=
"/v1/salesperson/payImage/{saleRecordId}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/v1/salesperson/payImage/{saleRecordId}"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
@ResponseBody
public
Object
payImagePhoto
(
@PathVariable
String
saleRecordId
,
MultipartHttpServletRequest
request
)
{
public
Object
payImagePhoto
(
@PathVariable
String
saleRecordId
,
MultipartHttpServletRequest
request
)
{
...
...
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