Procházet zdrojové kódy

fix url跳转缓存

zoujiajian před 1 rokem
rodič
revize
34b238d4d2

+ 2 - 2
netflix-service/src/main/java/com/cyksj/service/authorization/impl/AuthorizationServiceImpl.java

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

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

@@ -553,8 +553,6 @@ public class AuthorizationController {
         cookie.setPath("/");
         response.addCookie(userInfo);
         String url = redisService.getStr(re.getMappingId().toString());
-        redisService.del(re.getMappingId().toString());
-
         //获客助手 加粉深度回传拼接广告标识.
         try {
             url = appendCorpAcquistion(userinfo, url);