From ee451d25c7f36bdf55c39e0f05c49f3602529dc3 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Sat, 9 Mar 2024 15:09:11 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6key?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SyncSapInfo/Services/Implements/JinkoJIPService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;