增加模型工厂的租户ID

This commit is contained in:
zhangtao 2025-01-06 14:40:25 +08:00
parent 04efc7f95d
commit 8e469cfdc3

View File

@ -111,6 +111,7 @@ public class TrainHttpService {
AigcAccountRespVO aigcAccountRespVO = account(headers);
if (aigcAccountRespVO != null && CollUtil.isNotEmpty(aigcAccountRespVO.getTenants())) {
aigcLoginRespVO.setTenantId(aigcAccountRespVO.getTenants().get(0).getId());
headers.put("X-Tenant-Id", aigcLoginRespVO.getTenantId());
log.info(" login:{}", aigcAccountRespVO);
return aigcLoginRespVO;
}