管道基础大数据平台系统开发-【后端】-Server
1
sws
2023-01-14 5573ab68a6bf98014e6948d0c5ab538a90ce0ada
src/main/java/com/lf/server/interceptor/AuthInterceptor.java
@@ -23,7 +23,7 @@
 */
@Configuration
public class AuthInterceptor implements HandlerInterceptor {
    private SysService sysService;
    private final SysService sysService;
    private static final Log log = LogFactory.getLog(AuthInterceptor.class);
@@ -155,7 +155,7 @@
    private boolean checkWhiteList(String ip, HttpServletRequest request) {
        List<String> whiteList = sysService.blacklistService.selectIpList(2);
        if (whiteList == null || whiteList.isEmpty()) {
            return true;
            return false;
        }
        return whiteList.contains(ip);