Commit 4d001b97 authored by 耿迪迪's avatar 耿迪迪

白名单问题修改 gengdidi

parent 9a7a32a9
......@@ -69,7 +69,9 @@ public class AopInterceptor {
public boolean checkIpWhite(String ip) throws Exception {
String[] ipWhites = iPWhite.split(",");
for(String whiteIp : ipWhites){
return whiteIp.equals(ip);
if(whiteIp.equals(ip)){
return true;
}
}
return false;
}
......
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