在登录接口中处理header

This commit is contained in:
zhangtao 2025-01-06 14:42:04 +08:00
parent 8e469cfdc3
commit 8f33f0b3dc

View File

@ -100,6 +100,8 @@ public class TrainHttpService {
* 登录 POST
*/
public AigcLoginRespVO login(Map<String, String> headers){
headers.put("Content-Type", "application/json");
headers.put("Pragma", "no-cache");
String login = llmBackendProperties.getLogin();
AigcLoginReqVO req = new AigcLoginReqVO(llmBackendProperties.getLoginUsername(), llmBackendProperties.getLoginPassword());
String res = HttpUtils.post(login, headers, JSON.toJSONString(req));