feat 档案人脸分页状态

This commit is contained in:
2024-06-11 12:32:31 +08:00
parent 02e3e5c63b
commit 51b0397763
9 changed files with 140 additions and 71 deletions

View File

@@ -14,7 +14,7 @@ public class JinkoSapService : IJinkoSapService
private readonly IDbContext _dbContext;
private readonly IHttpClientFactory _httpClientFactory;
public JinkoSapService(IHttpClientFactory httpClientFactory, ILogger<JinkoSapService> logger, IDbContext dbContext)
public JinkoSapService(IHttpClientFactory httpClientFactory, IDbContext dbContext)
{
_dbContext = dbContext;
_httpClientFactory = httpClientFactory;
@@ -26,7 +26,7 @@ public class JinkoSapService : IJinkoSapService
httpClient.BaseAddress = new Uri("http://sappipap01.jinkosolar.cn:50100");
httpClient.Timeout = TimeSpan.FromMinutes(10);
var credentials = $"{"EHS_USER"}:{"y3R1hd2h*RICAC"}";
const string credentials = $"{"EHS_USER"}:{"y3R1hd2h*RICAC"}";
var headerValue = Convert.ToBase64String(Encoding.UTF8.GetBytes(credentials));
httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", headerValue);