Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 48c13579
authored
Jan 16, 2021
by
孙喜旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
17ffb2c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
linkwe-framework/src/main/java/com/linkwechat/framework/config/SecurityConfig.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeAccessTokenInterceptor.java
linkwe-framework/src/main/java/com/linkwechat/framework/config/SecurityConfig.java
View file @
48c1357
...
@@ -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
()
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/interceptor/WeAccessTokenInterceptor.java
View file @
48c1357
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment