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
41979340
Commit
41979340
authored
Jun 23, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
host
parent
18363526
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+7
-6
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
41979340
...
...
@@ -94,11 +94,12 @@ public class LoginController extends WebBaseController {
@IgnoreLogin
public
HaobanResponse
login
(
String
auth_code
,
HttpServletResponse
response
)
{
String
userJson
=
qywxCorpApiService
.
getLoginUserInfo
(
config
.
getCorpid
(),
auth_code
);
String
host
=
GlobalVar
.
ctxPropertiesMap
.
get
(
"haoban_service_host"
)
;
if
(
StringUtils
.
isBlank
(
userJson
))
{
logger
.
info
(
"企微登录失败auth_code={}"
,
auth_code
);
String
code
=
"1000"
;
try
{
response
.
sendRedirect
(
"/haoban-3/#/gic-error?errorCode="
+
code
);
response
.
sendRedirect
(
host
+
"/haoban-3/#/gic-error?errorCode="
+
code
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -111,7 +112,7 @@ public class LoginController extends WebBaseController {
logger
.
info
(
"企微登录失败auth_code={}"
,
auth_code
);
String
code
=
"1000"
;
try
{
response
.
sendRedirect
(
"/haoban-3/#/gic-error?errorCode="
+
code
);
response
.
sendRedirect
(
host
+
"/haoban-3/#/gic-error?errorCode="
+
code
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -122,7 +123,7 @@ public class LoginController extends WebBaseController {
logger
.
info
(
"微信企业不存在corpId={}"
,
corpId
);
String
code
=
"1000"
;
try
{
response
.
sendRedirect
(
"/haoban-3/#/gic-error?errorCode="
+
code
);
response
.
sendRedirect
(
host
+
"/haoban-3/#/gic-error?errorCode="
+
code
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -141,7 +142,7 @@ public class LoginController extends WebBaseController {
logger
.
info
(
"登录失败,好办管理员不存在"
);
String
code
=
"1000"
;
try
{
response
.
sendRedirect
(
"/haoban-3/#/gic-error?errorCode="
+
code
);
response
.
sendRedirect
(
host
+
"/haoban-3/#/gic-error?errorCode="
+
code
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -152,7 +153,7 @@ public class LoginController extends WebBaseController {
logger
.
info
(
"未配置手机号,staffId ={}"
,
loginStaff
.
getStaffId
());
String
code
=
"1000"
;
try
{
response
.
sendRedirect
(
"/haoban-3/#/gic-error?errorCode="
+
code
);
response
.
sendRedirect
(
host
+
"/haoban-3/#/gic-error?errorCode="
+
code
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
@@ -183,7 +184,7 @@ public class LoginController extends WebBaseController {
String
code
=
this
.
doLogin
(
wxEnterpriseId
,
gicEnterpriseId
,
loginPhoneNumber
,
"gic"
,
response
);
if
(
StringUtils
.
isNotBlank
(
code
))
{
try
{
response
.
sendRedirect
(
"/haoban-3/#/gic-error?errorCode="
+
code
);
response
.
sendRedirect
(
host
+
"/haoban-3/#/gic-error?errorCode="
+
code
);
}
catch
(
IOException
e
)
{
e
.
printStackTrace
();
}
...
...
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