Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
836269cb
Commit
836269cb
authored
Jan 15, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:bug修改
parent
8bdc00e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
+8
-1
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+1
-1
JwtUtil.java
...rc/main/java/com/gic/haoban/manage/web/utils/JwtUtil.java
+7
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
836269cb
...
@@ -226,7 +226,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -226,7 +226,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
AuthRequestWellDoneUtil
.
delToken
();
AuthRequestWellDoneUtil
.
delToken
();
String
newToken
=
JwtUtil
.
genToken
(
tokenMap
);
String
newToken
=
JwtUtil
.
genToken
(
tokenMap
);
AuthRequestWellDoneUtil
.
setAppLoginUser
(
newToken
,
BeanUtil
.
mapToBean
(
tokenMap
,
WellDoneLoginDTO
.
class
,
false
));
AuthRequestWellDoneUtil
.
setAppLoginUser
(
newToken
,
BeanUtil
.
mapToBean
(
tokenMap
,
WellDoneLoginDTO
.
class
,
false
));
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
t
oken
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
newT
oken
);
}
}
/**
/**
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/utils/JwtUtil.java
View file @
836269cb
...
@@ -85,4 +85,11 @@ public class JwtUtil {
...
@@ -85,4 +85,11 @@ public class JwtUtil {
map
.
forEach
((
k
,
v
)
->
resultMap
.
put
(
k
,
v
.
asString
()));
map
.
forEach
((
k
,
v
)
->
resultMap
.
put
(
k
,
v
.
asString
()));
return
resultMap
;
return
resultMap
;
}
}
public
static
void
main
(
String
[]
args
)
{
String
token
=
"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJwaG9uZU51bWJlciI6IjEzNTc2MjIzNDQ3IiwiaXNzIjoiZ2ljX2hhb2JhbiIsInd4RW50ZXJwcmlzZUlkIjoiY2E2NmEwMWI3OTQ3NGM0MGIzZTdjN2Y5M2RhZjFhM2IiLCJzdGFmZklkIjoiZWM0ODI0NzBiZmIxNGFlZjkxMTBhYTIwM2Y5MmRmYjgifQ.rcP4U42mvvNKiiJXWoHVL8ad7doFmfgt5LuigrI_m5I"
;
Map
<
String
,
String
>
stringStringMap
=
parseToken
(
token
);
String
s
=
genToken
(
stringStringMap
);
System
.
out
.
println
(
s
);
}
}
}
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