|  | @@ -72,21 +72,23 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
 | 
	
		
			
				|  |  |       **/
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public void configure(WebSecurity web) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        ArrayList<String> matchers = new ArrayList<>();
 | 
	
		
			
				|  |  | -        matchers.add("/");
 | 
	
		
			
				|  |  | -        matchers.add("/#/**");
 | 
	
		
			
				|  |  | -        matchers.add("/static/**");
 | 
	
		
			
				|  |  | -        matchers.add("/index.html");
 | 
	
		
			
				|  |  | -        matchers.add("/doc.html");
 | 
	
		
			
				|  |  | -        matchers.add("/webjars/**");
 | 
	
		
			
				|  |  | -        matchers.add("/swagger-resources/**");
 | 
	
		
			
				|  |  | -        matchers.add("/v3/api-docs/**");
 | 
	
		
			
				|  |  | -        matchers.add("/js/**");
 | 
	
		
			
				|  |  | -        matchers.add("/api/device/query/snap/**");
 | 
	
		
			
				|  |  | -        matchers.addAll(userSetting.getInterfaceAuthenticationExcludes());
 | 
	
		
			
				|  |  | -        // 可以直接访问的静态数据
 | 
	
		
			
				|  |  | -        web.ignoring().antMatchers(matchers.toArray(new String[0]));
 | 
	
		
			
				|  |  | +        if (userSetting.isInterfaceAuthentication()) {
 | 
	
		
			
				|  |  | +            ArrayList<String> matchers = new ArrayList<>();
 | 
	
		
			
				|  |  | +            matchers.add("/");
 | 
	
		
			
				|  |  | +            matchers.add("/#/**");
 | 
	
		
			
				|  |  | +            matchers.add("/static/**");
 | 
	
		
			
				|  |  | +            matchers.add("/index.html");
 | 
	
		
			
				|  |  | +            matchers.add("/doc.html");
 | 
	
		
			
				|  |  | +            matchers.add("/webjars/**");
 | 
	
		
			
				|  |  | +            matchers.add("/swagger-resources/**");
 | 
	
		
			
				|  |  | +            matchers.add("/v3/api-docs/**");
 | 
	
		
			
				|  |  | +            matchers.add("/js/**");
 | 
	
		
			
				|  |  | +            matchers.add("/api/device/query/snap/**");
 | 
	
		
			
				|  |  | +            matchers.add("/record_proxy/*/**");
 | 
	
		
			
				|  |  | +            matchers.addAll(userSetting.getInterfaceAuthenticationExcludes());
 | 
	
		
			
				|  |  | +            // 可以直接访问的静态数据
 | 
	
		
			
				|  |  | +            web.ignoring().antMatchers(matchers.toArray(new String[0]));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 |