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
bd40e37e
Commit
bd40e37e
authored
Dec 16, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:登录token增加code
parent
c135396d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+1
-1
HaoBanErrCode.java
...java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
+1
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
bd40e37e
...
@@ -213,7 +213,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -213,7 +213,7 @@ public class WxEnterpriseInfoController extends WebBaseController {
public
HaobanResponse
welldoneTokenRefresh
()
{
public
HaobanResponse
welldoneTokenRefresh
()
{
String
token
=
AuthRequestWellDoneUtil
.
getToken
();
String
token
=
AuthRequestWellDoneUtil
.
getToken
();
if
(
ObjectUtil
.
isNull
(
token
))
{
if
(
ObjectUtil
.
isNull
(
token
))
{
return
resultResponse
(
HaoBanErrCode
.
ERR_300
04
);
return
resultResponse
(
HaoBanErrCode
.
ERR_300
10
);
}
}
Map
<
String
,
String
>
tokenMap
=
JwtUtil
.
parseToken
(
token
);
Map
<
String
,
String
>
tokenMap
=
JwtUtil
.
parseToken
(
token
);
if
(
MapUtil
.
isEmpty
(
tokenMap
))
{
if
(
MapUtil
.
isEmpty
(
tokenMap
))
{
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/errCode/HaoBanErrCode.java
View file @
bd40e37e
...
@@ -123,6 +123,7 @@ public enum HaoBanErrCode {
...
@@ -123,6 +123,7 @@ public enum HaoBanErrCode {
ERR_30007
(
30007
,
"未设置密码,请先设置密码"
),
ERR_30007
(
30007
,
"未设置密码,请先设置密码"
),
ERR_30008
(
30008
,
"超级管理员不存在"
),
ERR_30008
(
30008
,
"超级管理员不存在"
),
ERR_30009
(
30009
,
"token不正确,请重新登录"
),
ERR_30009
(
30009
,
"token不正确,请重新登录"
),
ERR_30010
(
30010
,
"token为空,请授权登录登录"
),
//角色
//角色
ERR_40001
(
40001
,
"角色异常"
),
ERR_40001
(
40001
,
"角色异常"
),
...
...
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