|
|
@@ -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);
|