Commit 84031931 by zhangchen

封装人脸上传一张

parent 44490670
...@@ -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) {
......
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