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

pull/439/MERGE
RuoYi 2023-02-22 10:30:49 +08:00
parent 0bbe126125
commit a1e2c6e1e6
3 changed files with 4 additions and 2 deletions

View File

@ -5,6 +5,8 @@ import java.io.PrintWriter;
/** /**
* *
*
* @author ruoyi
*/ */
public class FileUploadException extends Exception public class FileUploadException extends Exception
{ {

View File

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

View File

@ -345,7 +345,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;
} }