|
|
@@ -69,7 +69,13 @@ public class LoginHelper { |
|
|
|
|
|
|
|
return user; |
|
|
|
} |
|
|
|
|
|
|
|
public static UserSession simpleLogin(long useId){ |
|
|
|
User user = UserCache.getInstance().get(useId); |
|
|
|
if (user == null) { |
|
|
|
throw new BizException("账号或者密码出错"); |
|
|
|
} |
|
|
|
return new UserSession(user.getId()); |
|
|
|
} |
|
|
|
|
|
|
|
// public static UserSession login(LoginVO loginPO) { |
|
|
|
// String key = loginPO.getUuid() + "_" + SwConsts.LOGIN_VERIFY_CODE; |
|
|
|