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
ea81bdc8
Commit
ea81bdc8
authored
May 17, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login
parent
a2615aab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
22 deletions
+15
-22
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+15
-22
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
ea81bdc8
...
@@ -396,33 +396,26 @@ public class LoginController extends WebBaseController {
...
@@ -396,33 +396,26 @@ public class LoginController extends WebBaseController {
}
}
@RequestMapping
(
"/gic-login-check"
)
@RequestMapping
(
"/gic-login-check"
)
public
ModelAndView
gicLogin
(
String
c
lerkId
,
String
hbEnt
)
{
public
ModelAndView
gicLogin
(
String
c
ode
,
String
hbEnt
)
{
logger
.
info
(
"gic登录clerkId={},hbEnt={}"
,
c
lerkId
,
hbEnt
);
logger
.
info
(
"gic登录clerkId={},hbEnt={}"
,
c
ode
,
hbEnt
);
PowerClerkDTO
clerkDTO
=
this
.
userService
.
haobanLoginBack
(
c
lerkId
);
PowerClerkDTO
clerkDTO
=
this
.
userService
.
haobanLoginBack
(
c
ode
);
if
(
clerkDTO
==
null
)
{
if
(
clerkDTO
==
null
)
{
logger
.
info
(
"登录失败
,code失效:{}"
,
clerkId
);
logger
.
info
(
"登录失败
,传入clerkId={}无效"
,
code
);
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-web/#/gic-error"
,
false
));
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-web/#/gic-error
?errCode=1
"
,
false
));
return
model
;
return
model
;
}
}
// 获取code信息
String
gicEnterpriseId
=
clerkDTO
.
getEnterpriseId
();
String
gicEnterpriseId
=
clerkDTO
.
getEnterpriseId
();
String
loginPhoneNumber
=
clerkDTO
.
getPhoneNumber
();
String
loginPhoneNumber
=
clerkDTO
.
getPhoneNumber
();
boolean
b
=
wxEnterpriseRelatedApiService
.
enterpriseUseNew
(
gicEnterpriseId
);
Map
<
String
,
String
>
retMap
=
new
HashMap
<>();
if
(
b
)
{
retMap
.
put
(
"enterpriseId"
,
gicEnterpriseId
);
Map
<
String
,
String
>
retMap
=
new
HashMap
<>();
retMap
.
put
(
"phoneNumber"
,
loginPhoneNumber
);
retMap
.
put
(
"enterpriseId"
,
gicEnterpriseId
);
retMap
.
put
(
"wxEnterpriseId"
,
hbEnt
);
retMap
.
put
(
"phoneNumber"
,
loginPhoneNumber
);
String
ret
=
JSONObject
.
toJSONString
(
retMap
);
retMap
.
put
(
"wxEnterpriseId"
,
hbEnt
);
AES
aes
=
SecureUtil
.
aes
(
LOGIN_KEY
.
getBytes
());
String
ret
=
JSONObject
.
toJSONString
(
retMap
);
String
random
=
aes
.
encryptHex
(
ret
);
AES
aes
=
SecureUtil
.
aes
(
LOGIN_KEY
.
getBytes
());
logger
.
info
(
"使用新好办3:{}"
,
random
);
String
random
=
aes
.
encryptHex
(
ret
);
ModelAndView
model
=
new
ModelAndView
(
logger
.
info
(
"使用新好办3:{}"
,
random
);
new
RedirectView
(
"/haoban-3/#/loginMore?random="
+
random
,
false
,
false
));
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-3/#/loginMore?random="
+
random
,
false
,
false
));
return
model
;
}
logger
.
info
(
"登录失败,code失效:{}"
,
clerkId
);
ModelAndView
model
=
new
ModelAndView
(
new
RedirectView
(
"/haoban-web/#/gic-error"
,
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