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
52efa10b
Commit
52efa10b
authored
May 25, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录校验
parent
a5dd5e0a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+7
-2
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
52efa10b
...
...
@@ -420,9 +420,14 @@ public class LoginController extends WebBaseController {
String
wxEnterpriseId
=
jsonObject
.
getString
(
"wxEnterpriseId"
);
String
gicEnterpriseId
=
jsonObject
.
getString
(
"enterpriseId"
);
String
phoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
Long
timestamp
=
jsonObject
.
getLong
(
"timestamp"
)
;
logger
.
info
(
"选择企微列表,gicEnterpriseId={},phoneNumber={}"
,
gicEnterpriseId
,
phoneNumber
);
if
(
StringUtils
.
isAnyBlank
(
gicEnterpriseId
,
phoneNumber
))
{
return
this
.
fail
(
"商户id和手机号为空"
);
if
(
StringUtils
.
isAnyBlank
(
gicEnterpriseId
,
phoneNumber
,
timestamp
+
""
))
{
return
this
.
fail
(
"参数异常"
);
}
if
(
timestamp
+
1000
*
60
*
5
<
System
.
currentTimeMillis
())
{
logger
.
info
(
"登录超时gicEnterpriseId={},loginPhoneNumber={}"
,
gicEnterpriseId
,
phoneNumber
);
return
this
.
fail
(
"登录超时,请重新登录"
);
}
// 判断商户
List
<
WxEnterpriseDTO
>
wxEnterpriseList
=
wxEnterpriseRelatedApiService
.
listWxEnterpriseByEid
(
gicEnterpriseId
,
...
...
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