diff --git a/Src/Dlhis.ScheduledTask/SyncSapInfo/Services/Implements/JinkoJIPService.cs b/Src/Dlhis.ScheduledTask/SyncSapInfo/Services/Implements/JinkoJIPService.cs index e50bf97b..447f1cf0 100644 --- a/Src/Dlhis.ScheduledTask/SyncSapInfo/Services/Implements/JinkoJIPService.cs +++ b/Src/Dlhis.ScheduledTask/SyncSapInfo/Services/Implements/JinkoJIPService.cs @@ -24,10 +24,10 @@ public class JinkoJIPService : IJinkoJIPService private HttpClient GetHttpClient() { var httpClient = _httpClientFactory.CreateClient(); - httpClient.BaseAddress = new Uri(_configuration.GetSection("Jinko:Jip:BaseUrl").Value); + httpClient.BaseAddress = new Uri(_configuration.GetSection("JinkoOptions:Jip:BaseUrl").Value); //httpClient.Timeout = TimeSpan.FromMinutes(10); - var key = _configuration.GetSection("Jinko:Jip:Key").Value; - var secret = _configuration.GetSection("Jinko:Jip:Secret").Value; + var key = _configuration.GetSection("JinkoOptions:Jip:Key").Value; + var secret = _configuration.GetSection("JinkoOptions:Jip:Secret").Value; httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", IssueJwt(key, secret, 5)); return httpClient;