|
|
@@ -61,6 +61,16 @@ public class AuthService { |
|
|
|
} |
|
|
|
userSession.setSiteId(1); |
|
|
|
User user = UserCache.getInstance().get(userSession.getUserId()); |
|
|
|
if (user == null) { |
|
|
|
if (1 != userSession.getUserId()) { |
|
|
|
data.put("isOk", false); |
|
|
|
data.put("msg", "账户异常"); |
|
|
|
return R.success(data); |
|
|
|
} |
|
|
|
user = new User(); |
|
|
|
user.setId(1); |
|
|
|
user.setName("系统管理员"); |
|
|
|
} |
|
|
|
LoginAckVO loginAckVO = new LoginAckVO(); |
|
|
|
loginAckVO.setUserId(user.getId()); |
|
|
|
loginAckVO.setUserName(user.getName()); |
|
|
|