heheng
6 天以前 11103f875148715e1c25f67f1e9e78c3e20a71ae
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   真实密码