From 8c45dd123b3db389c0db13b6eb7f64c88f1c4323 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Thu, 27 Jun 2024 16:37:49 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=A7=BB=E9=99=A4if=20debug=E5=AE=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs | 3 --- Src/Dlhis.Middle/appsettings.Development.json | 5 ++++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs b/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs index baad1702..c84960af 100644 --- a/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs +++ b/Src/Dlhis.Middle/Services/Implements/DataDownloadService.cs @@ -73,9 +73,6 @@ public class DataDownloadService : IDataDownloadService httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token); var url = $"https://{_hostName}/api/common/SysData/download"; -#if DEBUG - url = "http://localhost:5001/api/SysData/download"; -#endif var requestUrl = QueryHelpers.AddQueryString(url, new Dictionary { diff --git a/Src/Dlhis.Middle/appsettings.Development.json b/Src/Dlhis.Middle/appsettings.Development.json index 0c208ae9..e9c3b230 100644 --- a/Src/Dlhis.Middle/appsettings.Development.json +++ b/Src/Dlhis.Middle/appsettings.Development.json @@ -4,5 +4,8 @@ "Default": "Information", "Microsoft.AspNetCore": "Warning" } - } + }, + "Authority": "https://yikatong.isawesome.cn", + "Factory": "1234", + "HostName": "yikatong.isawesome.cn" }