修复isMatchedIp的参数判断产生空指针的问题

duhanyu
RuoYi 2 years ago
parent 3402b69556
commit 90970eb9fe

@ -145,7 +145,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
} }
/** /**
* *
* *
* @param endTime * @param endTime
* @param startTime * @param startTime

@ -357,7 +357,7 @@ public class IpUtils
*/ */
public static boolean isMatchedIp(String filter, String ip) public static boolean isMatchedIp(String filter, String ip)
{ {
if (StringUtils.isEmpty(filter) && StringUtils.isEmpty(ip)) if (StringUtils.isEmpty(filter) || StringUtils.isEmpty(ip))
{ {
return false; return false;
} }

Loading…
Cancel
Save