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
9d05ed06
Commit
9d05ed06
authored
May 25, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
b53bde73
13b7612d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+7
-5
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
9d05ed06
...
@@ -2,8 +2,6 @@ package com.gic.haoban.manage.web.controller;
...
@@ -2,8 +2,6 @@ package com.gic.haoban.manage.web.controller;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
import
java.net.URLEncoder
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -22,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -22,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.ModelAndView
;
import
org.springframework.web.servlet.view.RedirectView
;
import
org.springframework.web.servlet.view.RedirectView
;
import
com.alibaba.dubbo.common.URL
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.clerk.api.dto.ClerkDTO
;
import
com.gic.clerk.api.dto.ClerkDTO
;
...
@@ -420,9 +417,14 @@ public class LoginController extends WebBaseController {
...
@@ -420,9 +417,14 @@ public class LoginController extends WebBaseController {
String
wxEnterpriseId
=
jsonObject
.
getString
(
"wxEnterpriseId"
);
String
wxEnterpriseId
=
jsonObject
.
getString
(
"wxEnterpriseId"
);
String
gicEnterpriseId
=
jsonObject
.
getString
(
"enterpriseId"
);
String
gicEnterpriseId
=
jsonObject
.
getString
(
"enterpriseId"
);
String
phoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
String
phoneNumber
=
jsonObject
.
getString
(
"phoneNumber"
);
Long
timestamp
=
jsonObject
.
getLong
(
"timestamp"
)
;
logger
.
info
(
"选择企微列表,gicEnterpriseId={},phoneNumber={}"
,
gicEnterpriseId
,
phoneNumber
);
logger
.
info
(
"选择企微列表,gicEnterpriseId={},phoneNumber={}"
,
gicEnterpriseId
,
phoneNumber
);
if
(
StringUtils
.
isAnyBlank
(
gicEnterpriseId
,
phoneNumber
))
{
if
(
StringUtils
.
isAnyBlank
(
gicEnterpriseId
,
phoneNumber
,
timestamp
+
""
))
{
return
this
.
fail
(
"商户id和手机号为空"
);
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
,
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