|
|
@@ -109,6 +109,12 @@ public class LoginUser implements Serializable {
|
|
|
* 获取登录id
|
|
|
*/
|
|
|
public String getLoginId() {
|
|
|
+ if (userType == null) {
|
|
|
+ throw new IllegalArgumentException("用户类型不能为空");
|
|
|
+ }
|
|
|
+ if (userId == null) {
|
|
|
+ throw new IllegalArgumentException("用户ID不能为空");
|
|
|
+ }
|
|
|
return userType + CacheConstants.LOGINID_JOIN_CODE + userId;
|
|
|
}
|
|
|
|