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
54f5e99d
Commit
54f5e99d
authored
Jan 17, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:登录更改
parent
a0a44a74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
WxEnterpriseInfoController.java
...ban/manage/web/controller/WxEnterpriseInfoController.java
+10
-1
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseInfoController.java
View file @
54f5e99d
...
@@ -184,7 +184,16 @@ public class WxEnterpriseInfoController extends WebBaseController {
...
@@ -184,7 +184,16 @@ public class WxEnterpriseInfoController extends WebBaseController {
public
RestResponse
<
String
>
welldoneLogin
(
@RequestBody
@Valid
StaffLoginQO
staffLoginQO
,
HttpServletRequest
request
)
{
public
RestResponse
<
String
>
welldoneLogin
(
@RequestBody
@Valid
StaffLoginQO
staffLoginQO
,
HttpServletRequest
request
)
{
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffLoginQO
.
getStaffId
());
StaffDTO
staffDTO
=
staffApiService
.
selectById
(
staffLoginQO
.
getStaffId
());
if
(
staffDTO
==
null
)
{
if
(
staffDTO
==
null
)
{
return
RestResponse
.
failure
(
String
.
valueOf
(
HaoBanErrCode
.
ERR_6
.
getCode
()),
HaoBanErrCode
.
ERR_6
.
getMsg
());
return
RestResponse
.
failure
(
String
.
valueOf
(
HaoBanErrCode
.
ERR_6
.
getCode
()),
HaoBanErrCode
.
ERR_6
.
getMsg
());
}
//登录和刷新token兼容
String
headerToken
=
AuthRequestWellDoneUtil
.
getHeaderToken
();
if
(
StringUtils
.
isNotBlank
(
headerToken
))
{
String
refreshToken
=
AuthRequestWellDoneUtil
.
refreshToken
();
if
(
StringUtils
.
isBlank
(
refreshToken
))
{
return
RestResponse
.
failure
(
String
.
valueOf
(
HaoBanErrCode
.
ERR_30010
.
getCode
()),
HaoBanErrCode
.
ERR_30010
.
getMsg
());
}
return
RestResponse
.
successResult
(
refreshToken
);
}
}
String
staffId
=
staffDTO
.
getStaffId
();
String
staffId
=
staffDTO
.
getStaffId
();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
...
...
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