Commit 7854ace8 by zhangchen

核验客户购买卡身份

parent 84031931
......@@ -249,6 +249,34 @@ public class UserMController {
return null;
}
/**
* 人脸核验身份信息
* @param saleRecordId
* @param request
* @return
*/
@SuppressWarnings("deprecation")
@RequestMapping(value = "/v1/users/userImage/{token}", method = RequestMethod.POST)
@Security
@ResponseBody
public Object userImageFlag(@PathVariable String token) {
//Response<Object> response = new Response<Object>();
Map<Object,Object> map = new HashMap<Object,Object>();
UserBean userBean = this.userMService.getUserBean(token);
String faceImageFlag = this.userMService.getUserBean(token).getFaceImage();
if(!"".equals(faceImageFlag)&&faceImageFlag!=null){
map.put("code", 1);
map.put("faceImage", userBean.getFaceImage());
map.put("userName", userBean.getUserName());
map.put("bindedMobilePhone", userBean.getBindedMobilePhone());
return JSON.toJSONString(map);
}else{
map.put("code", 0);
return JSON.toJSONString(map);
}
}
@RequestMapping(value = "/v1/salesperson/payImage/{saleRecordId}", method = RequestMethod.POST)
@ResponseBody
public Object payImagePhoto(@PathVariable String saleRecordId, MultipartHttpServletRequest request) {
......
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 sign in to comment