新oa待办跳转到待办页面bug修复4

This commit is contained in:
wenlukang1 2025-06-26 22:42:13 +08:00
parent fecc86a5f5
commit 554be3d22e
1 changed files with 5 additions and 3 deletions

View File

@ -28,6 +28,8 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
private final String CLIENT_ID2 = System.getProperty("scnyfz-clientKey"); private final String CLIENT_ID2 = System.getProperty("scnyfz-clientKey");
private final String CLIENT_SECRET2 = System.getProperty("scnyfz-scict"); private final String CLIENT_SECRET2 = System.getProperty("scnyfz-scict");
private final String EOSS_IP2 = System.getProperty("scnyfz-ip2"); private final String EOSS_IP2 = System.getProperty("scnyfz-ip2");
private final String skIP = System.getProperty("backlog-ip");
/** /**
* 方法实现用户没有登录的时候跳转认证中心的登录地址 * 方法实现用户没有登录的时候跳转认证中心的登录地址
@ -40,7 +42,6 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
String secret; String secret;
String queryUrl = httpServletRequest.getQueryString(); String queryUrl = httpServletRequest.getQueryString();
if (queryUrl.contains("isNew")) { if (queryUrl.contains("isNew")) {
ip = EOSS_IP2; ip = EOSS_IP2;
client = CLIENT_ID2; client = CLIENT_ID2;
@ -66,8 +67,9 @@ public class SSOPluginLogin implements ThirdSSOAuthHandler {
queryUrl = Base64.getEncoder().encodeToString(queryUrl.getBytes(StandardCharsets.UTF_8)); queryUrl = Base64.getEncoder().encodeToString(queryUrl.getBytes(StandardCharsets.UTF_8));
// String skIp = httpServletRequest.getRemo // String skIp = httpServletRequest.getRemo
String skUrl = RevProxyUtil.getURLContextPath(httpServletRequest); String skUrl = RevProxyUtil.getURLContextPath(httpServletRequest);
logger.info("获取地址:"+skUrl); logger.info("getURLContextPath"+skUrl);
String redirect = skUrl+"index.html?param="+queryUrl; String redirect = skIP+"/index.html?param="+queryUrl;
logger.info("skip"+skUrl);
//认证中心的登录地址 //认证中心的登录地址
logger.info(String.format("eoss_ip:%s,client_id:%s,client_secret:%s,重定向地址:%s", ip, client, secret, s)); logger.info(String.format("eoss_ip:%s,client_id:%s,client_secret:%s,重定向地址:%s", ip, client, secret, s));