|
@@ -46,14 +46,14 @@ public class AuthorizationServiceImpl implements AuthorizationService {
|
|
|
String redirectHost = getHostFromUrl(url);
|
|
String redirectHost = getHostFromUrl(url);
|
|
|
|
|
|
|
|
// 从配置中获取预设的回调URL,并获取其Host
|
|
// 从配置中获取预设的回调URL,并获取其Host
|
|
|
- String preUrl = weChatConfig.getNotifyDomain();
|
|
|
|
|
|
|
+ String preUrl = weChatConfig.getDomain();
|
|
|
String authHost = getHostFromUrl(preUrl);
|
|
String authHost = getHostFromUrl(preUrl);
|
|
|
|
|
|
|
|
// 记录回调URL日志
|
|
// 记录回调URL日志
|
|
|
log.info("回调url: {}", preUrl);
|
|
log.info("回调url: {}", preUrl);
|
|
|
|
|
|
|
|
// 构造最终的重定向URL
|
|
// 构造最终的重定向URL
|
|
|
- String weChatRedirectUrl = weChatConfig.getNotifyDomain() + WeChatAuthRedirectUrl.get(authType).getUrl();
|
|
|
|
|
|
|
+ String weChatRedirectUrl = weChatConfig.getDomain() + WeChatAuthRedirectUrl.get(authType).getUrl();
|
|
|
|
|
|
|
|
// 如果重定向URL和授权域名不同,则追加 "/other"
|
|
// 如果重定向URL和授权域名不同,则追加 "/other"
|
|
|
if (!redirectHost.equals(authHost)) {
|
|
if (!redirectHost.equals(authHost)) {
|