Commit 96a51172 authored by jiaorz's avatar jiaorz

获取用户信息bug

parent bd49f9ae
...@@ -72,7 +72,7 @@ public class PublicController { ...@@ -72,7 +72,7 @@ public class PublicController {
, new HashSet<String>() {{add("用户名不存在!");}}); , new HashSet<String>() {{add("用户名不存在!");}});
} }
Integer userid = Integer.parseInt(username); Integer userid = Integer.parseInt(username);
return ObjectRestResponse.succ(getAppUserInfoById(userid)); return getAppUserInfoById(userid);
} }
@RequestMapping(value = "/app/userinfo-by-id", method = RequestMethod.GET) @RequestMapping(value = "/app/userinfo-by-id", method = RequestMethod.GET)
...@@ -98,7 +98,7 @@ public class PublicController { ...@@ -98,7 +98,7 @@ public class PublicController {
, new HashSet<String>() {{add("用户名不存在!");}}); , new HashSet<String>() {{add("用户名不存在!");}});
} }
} }
return ObjectRestResponse.succ(getAppUserInfoById(appUserLogin.getId())); return getAppUserInfoById(appUserLogin.getId());
} }
private ObjectRestResponse<AppUserDTO> getAppUserInfoById(Integer userid) throws IllegalAccessException, InvocationTargetException { private ObjectRestResponse<AppUserDTO> getAppUserInfoById(Integer userid) throws IllegalAccessException, InvocationTargetException {
......
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 to comment