【QQYUN-8561】企业微信登陆请求接口设置上下文不一致,导致接口404

pull/6007/head
JEECG 8 months ago
parent 685b81e5ec
commit 6360aee0ff

@ -348,8 +348,11 @@ public class CommonUtils {
//返回 host domain //返回 host domain
String baseDomainPath = null; String baseDomainPath = null;
int length = 80; //update-begin---author:wangshuai---date:2024-03-15---for:【QQYUN-8561】企业微信登陆请求接口设置上下文不一致导致接口404---
if(length == serverPort){ int httpPort = 80;
int httpsPort = 443;
if(httpPort == serverPort || httpsPort == serverPort){
//update-end---author:wangshuai---date:2024-03-15---for:【QQYUN-8561】企业微信登陆请求接口设置上下文不一致导致接口404---~
baseDomainPath = scheme + "://" + serverName + contextPath ; baseDomainPath = scheme + "://" + serverName + contextPath ;
}else{ }else{
baseDomainPath = scheme + "://" + serverName + ":" + serverPort + contextPath ; baseDomainPath = scheme + "://" + serverName + ":" + serverPort + contextPath ;

Loading…
Cancel
Save