Commit fa6ae5fb by Suvalue

登录返回修改

parent fe494774
......@@ -29,7 +29,7 @@ public class LoginController {
String ip = HttpUtil.getIP(request);
LoginService.LoginInfo loginInfo = loginServiceImpl.login(
codeAndPwd.getLoginName(),codeAndPwd.getPassword(),ip);
if(loginInfo==null){
if(loginInfo.getUser()==null){
return Result.error(Result.ErrorCode.USERERROR);
}
return Result.success(loginInfo);
......
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