diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java index 4394f03b4..04c87d8a9 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/DateUtils.java @@ -145,7 +145,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils } /** - * 计算时间差(单位:分钟) + * 计算时间差 * * @param endTime 最后时间 * @param startTime 开始时间 diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java index b410fdae2..33162402d 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java @@ -357,7 +357,7 @@ public class IpUtils */ public static boolean isMatchedIp(String filter, String ip) { - if (StringUtils.isEmpty(filter) && StringUtils.isEmpty(ip)) + if (StringUtils.isEmpty(filter) || StringUtils.isEmpty(ip)) { return false; }