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
cceb2a44
Commit
cceb2a44
authored
Apr 19, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登陆接口
parent
6b95acc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
12 deletions
+4
-12
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+4
-12
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
cceb2a44
...
@@ -193,8 +193,8 @@ public class LoginController extends WebBaseController{
...
@@ -193,8 +193,8 @@ public class LoginController extends WebBaseController{
//判断是否存在random
//判断是否存在random
AES
aes
=
SecureUtil
.
aes
(
LOGIN_KEY
.
getBytes
());
AES
aes
=
SecureUtil
.
aes
(
LOGIN_KEY
.
getBytes
());
String
o
=
aes
.
decryptStr
(
random
);
String
o
=
aes
.
decryptStr
(
random
);
if
(
o
==
null
)
{
if
(
o
==
null
||
StringUtils
.
isBlank
(
wxEnterpriseId
))
{
logger
.
info
(
"解密异常"
);
logger
.
info
(
"解密异常"
);
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/gic-error"
,
false
,
false
));
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/gic-error"
,
false
,
false
));
return
model
;
return
model
;
}
}
...
@@ -207,16 +207,8 @@ public class LoginController extends WebBaseController{
...
@@ -207,16 +207,8 @@ public class LoginController extends WebBaseController{
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/gic-error"
,
false
,
false
));
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/gic-error"
,
false
,
false
));
return
model
;
return
model
;
}
}
WxEnterpriseDTO
detailDTO
=
null
;
if
(
StringUtils
.
isNotBlank
(
wxEnterpriseId
))
{
WxEnterpriseDTO
detailDTO
=
enterpriseDTOList
.
stream
().
filter
(
dto
->
dto
.
getWxEnterpriseId
().
equals
(
wxEnterpriseId
)).
findFirst
().
orElse
(
null
);
detailDTO
=
enterpriseDTOList
.
stream
().
filter
(
dto
->
dto
.
getWxEnterpriseId
().
equals
(
wxEnterpriseId
)).
findFirst
().
orElse
(
null
);
}
else
if
(
enterpriseDTOList
.
size
()
>
1
)
{
detailDTO
=
enterpriseDTOList
.
get
(
0
);
}
else
{
logger
.
info
(
"登陆选择多个企业:{}"
,
JSONObject
.
toJSONString
(
enterpriseDTOList
));
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/login"
,
false
,
false
));
return
model
;
}
if
(
null
==
detailDTO
)
{
if
(
null
==
detailDTO
)
{
logger
.
info
(
"登录失败,不存在对应企业:{}"
,
o
);
logger
.
info
(
"登录失败,不存在对应企业:{}"
,
o
);
...
...
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