Commit 48c13579 by 孙喜旺

fix

1 parent 17ffb2c5
...@@ -121,6 +121,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter ...@@ -121,6 +121,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter
.antMatchers("/wecom/chat/collection/cancleCollection").anonymous() .antMatchers("/wecom/chat/collection/cancleCollection").anonymous()
.antMatchers("/wecom/chat/collection/addCollection").anonymous() .antMatchers("/wecom/chat/collection/addCollection").anonymous()
.antMatchers("/wecom/chat/side/list").anonymous() .antMatchers("/wecom/chat/side/list").anonymous()
.antMatchers("/wecom/ticket/**").anonymous()
// 除上面外的所有请求全部需要鉴权认证 // 除上面外的所有请求全部需要鉴权认证
.anyRequest().authenticated() .anyRequest().authenticated()
......
...@@ -65,6 +65,9 @@ public class WeAccessTokenInterceptor implements Interceptor{ ...@@ -65,6 +65,9 @@ public class WeAccessTokenInterceptor implements Interceptor{
}else{ }else{
token=iWeAccessTokenService.findCommonAccessToken(); token=iWeAccessTokenService.findCommonAccessToken();
} }
if (uri.contains("ticket/get")){
request.addQuery("type","agent_config");
}
request.addQuery("access_token",token); request.addQuery("access_token",token);
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!