在登录接口中处理header
This commit is contained in:
parent
8e469cfdc3
commit
8f33f0b3dc
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user