Commit 7b02617f by 徐高华

gic域名

parent 0fa48cb1
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment