From 882f339dd4fc6fc3881cc32c40108409147ccd49 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Wed, 4 Sep 2024 15:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=AF=E5=90=8E=E5=86=85?= =?UTF-8?q?=E5=B5=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EmbedTraceProductService.cs | 6 ++++-- .../Properties/PublishProfiles/FolderProfile.pubxml | 13 +++++++++++++ .../PublishProfiles/FolderProfile.pubxml.user | 10 ++++++++++ ServiceDeamon/Properties/launchSettings.json | 8 ++++++++ ServiceDeamon/ServiceDeamon.csproj.user | 6 ++++++ 5 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml create mode 100644 ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml.user create mode 100644 ServiceDeamon/Properties/launchSettings.json create mode 100644 ServiceDeamon/ServiceDeamon.csproj.user diff --git a/Myshipping.Application/Service/EmbedProjectGoodsStatus/EmbedTraceProductService.cs b/Myshipping.Application/Service/EmbedProjectGoodsStatus/EmbedTraceProductService.cs index 2bacc864..9121d768 100644 --- a/Myshipping.Application/Service/EmbedProjectGoodsStatus/EmbedTraceProductService.cs +++ b/Myshipping.Application/Service/EmbedProjectGoodsStatus/EmbedTraceProductService.cs @@ -319,9 +319,11 @@ namespace Myshipping.Application } else { - _logger.LogInformation($"{JSON.Serialize(queryDto)} 查询失败,{result.resultMessage}"); + string msg = result != null ? result.resultMessage : "查询无结果"; - throw Oops.Oh(result.resultMessage); + _logger.LogInformation($"{JSON.Serialize(queryDto)} 查询失败,{msg}"); + + throw Oops.Oh(msg); } } diff --git a/ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml b/ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml new file mode 100644 index 00000000..154e0353 --- /dev/null +++ b/ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml @@ -0,0 +1,13 @@ + + + + + Release + Any CPU + bin\Release\net6.0\publish\ + FileSystem + <_TargetId>Folder + + \ No newline at end of file diff --git a/ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml.user b/ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml.user new file mode 100644 index 00000000..b1e29b25 --- /dev/null +++ b/ServiceDeamon/Properties/PublishProfiles/FolderProfile.pubxml.user @@ -0,0 +1,10 @@ + + + + + True|2024-02-29T08:00:42.0444911Z;True|2024-02-26T19:20:28.7587467+08:00; + + + \ No newline at end of file diff --git a/ServiceDeamon/Properties/launchSettings.json b/ServiceDeamon/Properties/launchSettings.json new file mode 100644 index 00000000..33504c94 --- /dev/null +++ b/ServiceDeamon/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "WSL": { + "commandName": "WSL2", + "distributionName": "" + } + } +} \ No newline at end of file diff --git a/ServiceDeamon/ServiceDeamon.csproj.user b/ServiceDeamon/ServiceDeamon.csproj.user new file mode 100644 index 00000000..928f01dd --- /dev/null +++ b/ServiceDeamon/ServiceDeamon.csproj.user @@ -0,0 +1,6 @@ + + + + <_LastSelectedProfileId>E:\MyCode\BookingHeChuan\ServiceDeamon\Properties\PublishProfiles\FolderProfile.pubxml + + \ No newline at end of file