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
5193951f
Commit
5193951f
authored
Jul 01, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录跳转
parent
51fa397b
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 @
5193951f
...
@@ -556,7 +556,7 @@ public class LoginController extends WebBaseController {
...
@@ -556,7 +556,7 @@ public class LoginController extends WebBaseController {
*/
*/
@RequestMapping
(
"/gic-login-check"
)
@RequestMapping
(
"/gic-login-check"
)
@IgnoreLogin
@IgnoreLogin
public
ModelAndView
gicLogin
(
String
code
,
String
hbEnt
)
{
public
ModelAndView
gicLogin
(
String
code
,
String
hbEnt
,
String
hbPage
)
{
logger
.
info
(
"gic登录clerkId={},hbEnt={}"
,
code
,
hbEnt
);
logger
.
info
(
"gic登录clerkId={},hbEnt={}"
,
code
,
hbEnt
);
PowerClerkDTO
clerkDTO
=
this
.
userService
.
haobanLoginBack
(
code
);
PowerClerkDTO
clerkDTO
=
this
.
userService
.
haobanLoginBack
(
code
);
if
(
clerkDTO
==
null
)
{
if
(
clerkDTO
==
null
)
{
...
@@ -568,14 +568,19 @@ public class LoginController extends WebBaseController {
...
@@ -568,14 +568,19 @@ public class LoginController extends WebBaseController {
String
loginPhoneNumber
=
clerkDTO
.
getPhoneNumber
();
String
loginPhoneNumber
=
clerkDTO
.
getPhoneNumber
();
Map
<
String
,
String
>
retMap
=
new
HashMap
<>();
Map
<
String
,
String
>
retMap
=
new
HashMap
<>();
retMap
.
put
(
"wxEnterpriseId"
,
hbEnt
);
retMap
.
put
(
"wxEnterpriseId"
,
hbEnt
);
retMap
.
put
(
"hbPage"
,
hbPage
)
;
retMap
.
put
(
"enterpriseId"
,
gicEnterpriseId
);
retMap
.
put
(
"enterpriseId"
,
gicEnterpriseId
);
retMap
.
put
(
"phoneNumber"
,
loginPhoneNumber
);
retMap
.
put
(
"phoneNumber"
,
loginPhoneNumber
);
retMap
.
put
(
"timestamp"
,
System
.
currentTimeMillis
()+
""
)
;
retMap
.
put
(
"timestamp"
,
System
.
currentTimeMillis
()+
""
)
;
String
ret
=
JSONObject
.
toJSONString
(
retMap
);
String
ret
=
JSONObject
.
toJSONString
(
retMap
);
AES
aes
=
SecureUtil
.
aes
(
LOGIN_KEY
.
getBytes
());
AES
aes
=
SecureUtil
.
aes
(
LOGIN_KEY
.
getBytes
());
String
random
=
aes
.
encryptHex
(
ret
);
String
random
=
aes
.
encryptHex
(
ret
);
String
pageStr
=
""
;
if
(
StringUtils
.
isNotBlank
(
hbPage
))
{
pageStr
+=
"&hbPage="
+
hbPage
;
}
RedisUtil
.
setCache
(
random
,
1
,
10L
,
TimeUnit
.
MINUTES
);
RedisUtil
.
setCache
(
random
,
1
,
10L
,
TimeUnit
.
MINUTES
);
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/loginMore?random="
+
random
,
false
,
false
));
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/loginMore?random="
+
random
+
pageStr
,
false
,
false
));
return
model
;
return
model
;
}
}
...
...
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