zoujiajian 1 anno fa
parent
commit
3a6f663dba

+ 2 - 2
netflix-web/src/main/java/com/cyksj/web/controller/user/AuthorizationController.java

@@ -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);
     }