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
7b02617f
Commit
7b02617f
authored
May 25, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gic域名
parent
0fa48cb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
LoginController.java
...com/gic/haoban/manage/web/controller/LoginController.java
+6
-4
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/LoginController.java
View file @
7b02617f
...
...
@@ -238,8 +238,7 @@ public class LoginController extends WebBaseController {
String url = "https://open.work.weixin.qq.com/wwopen/sso/3rd_qrConnect?appid=" + corpid + "&redirect_uri="
+ URLEncoder.encode(redirectUri, "UTF-8") + "&state=web_login@gyoss9&usertype=admin";*/
// return resultResponse(HaoBanErrCode.ERR_1, URL.decode(url));
String
gicHost
=
GlobalVar
.
ctxPropertiesMap
.
get
(
"gicweb_service_host"
);
gicHost
=
gicHost
.
replace
(
"gicweb"
,
""
).
replace
(
"https://"
,
"http://"
).
replace
(
"http://"
,
"https://"
)+
"gic-web/#/login?ishb=1"
;
String
gicHost
=
this
.
getGicHost
()+
"gic-web/#/login?ishb=1"
;
try
{
response
.
sendRedirect
(
gicHost
);
}
catch
(
IOException
e
)
{
...
...
@@ -247,6 +246,10 @@ public class LoginController extends WebBaseController {
}
return
null
;
}
private
String
getGicHost
(){
return
GlobalVar
.
ctxPropertiesMap
.
get
(
"gicweb_service_host"
).
replace
(
"gicweb"
,
""
);
}
// 登录逻辑
private
String
doLogin
(
String
wxEnterpriseId
,
String
gicEnterpriseId
,
String
loginPhoneNumber
,
String
loginChannel
,
...
...
@@ -344,8 +347,7 @@ public class LoginController extends WebBaseController {
logger
.
info
(
"当前登录信息={}"
,
JSON
.
toJSON
(
loginUser
));
vo
=
EntityUtil
.
changeEntityByOrika
(
WebLoginVO
.
class
,
loginUser
);
}
String
gicHost
=
GlobalVar
.
ctxPropertiesMap
.
get
(
"gicweb_service_host"
);
gicHost
=
gicHost
.
replace
(
"gicweb"
,
""
).
replace
(
"https://"
,
"http://"
).
replace
(
"http://"
,
"https://"
);
String
gicHost
=
this
.
getGicHost
();
vo
.
setGicHost
(
gicHost
);
return
this
.
success
(
vo
);
}
...
...
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