From d15420c18219ede777c874d18ba817be1ec9dbcc Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Wed, 17 Jul 2024 14:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9MSK=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DS.WMS.Core/Sys/Method/ConfigService.cs | 2 +- ds-wms-service/DS.WMS.OpApi/Logs/internal-nlog.txt | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ds-wms-service/DS.WMS.Core/Sys/Method/ConfigService.cs b/ds-wms-service/DS.WMS.Core/Sys/Method/ConfigService.cs index 5f264bab..2f08c035 100644 --- a/ds-wms-service/DS.WMS.Core/Sys/Method/ConfigService.cs +++ b/ds-wms-service/DS.WMS.Core/Sys/Method/ConfigService.cs @@ -107,7 +107,7 @@ public class ConfigService : IConfigService .Where(x => x.Code == code && x.TenantId == tenantId).Select().FirstAsync(); if(data != null) - DataResult.Success(data); + return DataResult.Success(data); return DataResult.FailedData(data); } diff --git a/ds-wms-service/DS.WMS.OpApi/Logs/internal-nlog.txt b/ds-wms-service/DS.WMS.OpApi/Logs/internal-nlog.txt index e6e74efb..0b7536b4 100644 --- a/ds-wms-service/DS.WMS.OpApi/Logs/internal-nlog.txt +++ b/ds-wms-service/DS.WMS.OpApi/Logs/internal-nlog.txt @@ -348,3 +348,17 @@ 2024-07-17 13:36:20.7429 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config 2024-07-17 13:36:20.7429 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile 2024-07-17 13:36:20.7553 Info Configuration initialized. +2024-07-17 13:59:03.7262 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-07-17 13:59:03.7262 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-07-17 13:59:03.7399 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-07-17 13:59:03.7399 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-07-17 13:59:03.7399 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config +2024-07-17 13:59:03.7565 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-07-17 13:59:03.7565 Info Configuration initialized. +2024-07-17 14:01:25.4803 Info Registered target NLog.Targets.FileTarget(Name=allfile) +2024-07-17 14:01:25.4922 Info Registered target NLog.Targets.FileTarget(Name=ownFile-web) +2024-07-17 14:01:25.4922 Info Registered target NLog.Targets.ColoredConsoleTarget(Name=console) +2024-07-17 14:01:25.5048 Info NLog, Version=5.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 5.2.8.2366. Product version: 5.2.8+f586f1341c46fa38aaaff4c641e7f0fa7e813943. GlobalAssemblyCache: False +2024-07-17 14:01:25.5048 Info Validating config: TargetNames=console, ownFile-web, ConfigItems=54, FilePath=E:\MyCode\Dongsheng8\ds-wms-service\DS.WMS.OpApi\bin\Debug\net8.0\nlog.config +2024-07-17 14:01:25.5048 Warn Unused target detected. Add a rule for this target to the configuration. TargetName: allfile +2024-07-17 14:01:25.5048 Info Configuration initialized.