瀏覽代碼

Merge remote-tracking branch 'origin/master'

zoujiajian 1 年之前
父節點
當前提交
eac4a8c4ba

+ 2 - 1
netflix-service/src/main/java/com/cyksj/service/chatgpt/impl/ChatGptAccountServiceImpl.java

@@ -59,7 +59,7 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
     @Value("${chatgpt.car.domain}")
     private String CAR_GPT_DOMAIN;
 
-    private static final String GPT_PROXY = "https://chat-chan-87jztgkf257d.xyhelper.net";
+    private static final String GPT_PROXY = "https://chat-chan-87jztgkf257d.xyhelper.org";
 
 
     private final RedisService redisService;
@@ -126,6 +126,7 @@ public class ChatGptAccountServiceImpl implements ChatGptAccountService {
         request.form("username", account.getAccount());
         request.form("password", account.getPassword());
         request.header("Content-Type", "application/x-www-form-urlencoded");
+        request.header("X-Requested-With", "xyhelper");
         HttpResponse execute = request.method(Method.POST).execute();
         String body = execute.body();
         log.info("登录返回token res:{}", body);