chenbiao 3 سال پیش
والد
کامیت
22fb3a6c86
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      netflix-service/src/main/java/com/cyksj/service/chatgpt/impl/ChatGptAuthServiceImpl.java

+ 3 - 1
netflix-service/src/main/java/com/cyksj/service/chatgpt/impl/ChatGptAuthServiceImpl.java

@@ -198,6 +198,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
         httpRequest.cookie(getCookie());
         httpRequest.setProxy(proxy);
         HttpResponse execute = httpRequest.execute();
+        parseSetCookie(execute.headerList(setCookie));
         log.info("three:{}",execute.body());
         if (execute.getStatus() == 302) {
             String Location = execute.header("Location");
@@ -222,7 +223,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
                     while (sb.length() < 6) {
                         sb.insert(0, 0);
                     }
-                    four(codeVerifier, location, code, username);
+                    four(codeVerifier, Location, code, username);
             }
             if (Location.contains("com.openai.chat://auth0.openai.com/ios/com.openai.chat/callback?")) {
                 return getAccessToken(codeVerifier, Location, username);
@@ -336,4 +337,5 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
 
     }
 
+
 }