chenbiao пре 3 година
родитељ
комит
8bc3ae47b6

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

@@ -137,7 +137,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
         Map<String, String> headers = new HashMap<>();
         Map<String, Object> map = new HashMap<>();
         map.put("state", state);
-        map.put("username", "audreyboothchelsea@gmail.com");
+        map.put("username", username);
         map.put("js-available", true);
         map.put("webauthn-available", true);
         map.put("is-brave", false);
@@ -151,7 +151,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
 
         HttpResponse execute = HttpRequest.post(url).setProxy(proxy).headerMap(headers, false).cookie(getCookie()).form(map).execute();
         parseSetCookie(execute.headerList(setCookie));
-        log.info(execute.body());
+        log.info("one:{}",execute.body());
         if (execute.getStatus() == 302) {
             return two(codeVerifier, state, username, password);
         }
@@ -173,6 +173,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
         map.put("action", "default");
         HttpResponse execute = HttpRequest.post(url).setProxy(proxy).headerMap(headers, true).cookie(getCookie()).form(map).execute();
         parseSetCookie(execute.headerList(setCookie));
+        log.info("two:{}",execute.body());
         if (execute.getStatus() == 302) {
             String Location = execute.header("Location");
             if (Location.contains("/authorize/resume?")) {
@@ -197,6 +198,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
         httpRequest.cookie(getCookie());
         httpRequest.setProxy(proxy);
         HttpResponse execute = httpRequest.execute();
+        log.info("three:{}",execute.body());
         if (execute.getStatus() == 302) {
             String Location = execute.header("Location");
             if (Location.startsWith("/u/mfa-otp-challenge?")) {
@@ -248,7 +250,7 @@ public class ChatGptAuthServiceImpl implements ChatGptAuthService {
 
         HttpResponse execute = HttpRequest.post(url).setProxy(proxy).headerMap(headers, true).cookie(getCookie()).form(map).execute();
         parseSetCookie(execute.headerList(setCookie));
-
+        log.info("four:{}",execute.body());
         if (execute.getStatus() == 302) {
             String Location = execute.header("Location");
             if (Location.contains("/authorize/resume?")) {