用户等级生效

This commit is contained in:
2025-10-13 14:41:47 +08:00
committed by khalil
parent c21684f505
commit aa9fa79fee

View File

@@ -208,8 +208,8 @@ public class ResourceServiceImpl extends ServiceImpl<ResourceMapper, Resource> i
isSkip = Integer.parseInt(val1) > Integer.parseInt(val2);
}
} else if (OperateType.GE.name().equals(kind)) {
limitUserLevel = RuleCodeEnum.USER_LEVEL.name().equals(key) && limitUserLevel;
if (!limitUserLevel) {
boolean needLimit = RuleCodeEnum.USER_LEVEL.name().equals(key) && limitUserLevel;
if (!needLimit) {
if (targetValue.toString().contains(StrUtil.DOT) && !targetValue.toString().startsWith(StrUtil.DELIM_START) && !targetValue.toString().startsWith(StrUtil.DELIM_END)){
isSkip = AppVersionUtil.compareVersion(val1, val2) < 0;
} else {