Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
448f2dae
Commit
448f2dae
authored
Jan 25, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复token中不允许有空字符串的bug
parent
d17fa4b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
JwtAuthenticationService.java
...a/pwc/taxtech/atms/security/JwtAuthenticationService.java
+3
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/security/JwtAuthenticationService.java
View file @
448f2dae
package
pwc
.
taxtech
.
atms
.
security
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.cache.annotation.CacheEvict
;
...
...
@@ -9,13 +10,12 @@ import pwc.taxtech.atms.dao.PermissionMapper;
import
pwc.taxtech.atms.dao.RolePermissionMapper
;
import
pwc.taxtech.atms.dao.UserRoleMapper
;
import
pwc.taxtech.atms.entity.*
;
import
pwc.taxtech.atms.service.impl.RoleServiceImpl
;
import
javax.annotation.Resource
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.stream.Collectors
;
@Service
...
...
@@ -67,7 +67,7 @@ public class JwtAuthenticationService {
List
<
Permission
>
permissions
=
permissionMapper
.
selectByExample
(
permissionExample
);
permissions
.
forEach
(
permission
->
{
apiAuthList
.
addAll
(
Arrays
.
asList
(
permission
.
getOperationPermList
().
split
(
"\\|"
)));
apiAuthList
.
addAll
(
Arrays
.
stream
(
permission
.
getOperationPermList
().
split
(
"\\|"
)).
filter
(
p
->
StringUtils
.
isNotBlank
(
p
)).
collect
(
Collectors
.
toList
(
)));
});
/*apiAuthList.add("user:add");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment