heheng
9 天以前 bd605ac1e79b73db3b501f323d6f4a10c0f27dd5
multi-common/src/main/java/com/gkhy/exam/common/utils/SecurityUtils.java
@@ -19,6 +19,19 @@
        return userId != null && 1L == userId;
    }
    public static boolean adminUser(){
        if(getLoginUser() == null){
            return false;
        }
        if(getLoginUser().getUser().getId() == 1L){
            return true;
        }
        if(getLoginUser().getUser().getUserType() == 0){
            return true;
        }
       return false;
    }
    /**
     * 判断密码是否相同
     * @param rawPasword   真实密码