Commit 5a0e7963 authored by zhouxudong's avatar zhouxudong

添加白名单 ip

parent cfdcd528
......@@ -43,8 +43,6 @@ public class LoginInterceptor implements HandlerInterceptor {
//立业人请求接口
//查询白名单
String ip = IpUtils.getIpAddr(request);
String hostIp = IpUtils.getHostIp();
log.info("请求ip:{},主机ip:{}",ip,hostIp);
if(StringUtils.isEmpty(ip)||!whiteIp.contains(ip)){
throw new LiyerenException("没有请求权限");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment