mirror of https://gitee.com/y_project/RuoYi.git
修复isMatchedIp的参数判断产生空指针的问题
parent
0bbe126125
commit
a1e2c6e1e6
|
@ -5,6 +5,8 @@ import java.io.PrintWriter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件上传异常类
|
* 文件上传异常类
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
*/
|
*/
|
||||||
public class FileUploadException extends Exception
|
public class FileUploadException extends Exception
|
||||||
{
|
{
|
||||||
|
|
|
@ -145,7 +145,7 @@ public class DateUtils extends org.apache.commons.lang3.time.DateUtils
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 计算时间差(单位:分钟)
|
* 计算时间差
|
||||||
*
|
*
|
||||||
* @param endTime 最后时间
|
* @param endTime 最后时间
|
||||||
* @param startTime 开始时间
|
* @param startTime 开始时间
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue