人脸识别
This commit is contained in:
parent
bb3600c101
commit
01f6f5bbc0
|
@ -155,7 +155,12 @@ public class SysLoginController {
|
|||
String substring = imageFile.substring(imageFile.lastIndexOf("/") + 1, imageFile.lastIndexOf("."));
|
||||
System.out.println("识别用户为" + substring);
|
||||
AjaxResult ajax = AjaxResult.success();
|
||||
String token = loginService.loginAppBySms(substring, substring);
|
||||
String token = null;
|
||||
try {
|
||||
token = loginService.loginAppBySms(substring, substring);
|
||||
} catch (Exception e) {
|
||||
return AjaxResult.error("未检测到用户信息");
|
||||
}
|
||||
JSONObject resJson = new JSONObject();
|
||||
resJson.put(Constants.TOKEN, token);
|
||||
resJson.put("user", substring);
|
||||
|
|
Loading…
Reference in New Issue