feat 档案人脸分页状态
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user