|
|
@@ -184,7 +184,7 @@ public class AuthorizationController {
|
|
|
|
|
|
log.info("微信非主域名授权转跳. url: {}", url);
|
|
|
String path = URLUtil.getPath(weChatConfig.getDomain());
|
|
|
- response.sendRedirect(URLUtil.getHost(new URL(url)).getHost().toString() + path + "auth/weChat/baseRedirect" + "?code=" + code + "&state=" + state);
|
|
|
+ response.sendRedirect(URLUtil.getHost(new URL(url)).toString() + path + "auth/weChat/baseRedirect" + "?code=" + code + "&state=" + state);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -209,7 +209,7 @@ public class AuthorizationController {
|
|
|
log.info("微信非主域名授权转跳. url: {}", url);
|
|
|
String path = URLUtil.getPath(weChatConfig.getDomain());
|
|
|
|
|
|
- response.sendRedirect(URLUtil.getHost(new URL(url)).getHost().toString() + path + "auth/weChat/silentRedirect" + "?code=" + code + "&state=" + state);
|
|
|
+ response.sendRedirect(URLUtil.getHost(new URL(url)).toString() + path + "auth/weChat/silentRedirect" + "?code=" + code + "&state=" + state);
|
|
|
}
|
|
|
|
|
|
|