mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 优化 getLoginId 增加必要参数空校验
This commit is contained in:
		@@ -105,6 +105,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 + LoginHelper.JOIN_CODE + userId;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user