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 真实密码