From 9a5d9ecd4fa611c85897b43145d342a7b6bf24a1 Mon Sep 17 00:00:00 2001 From: cheche <717840555@qq.com> Date: Thu, 11 Jan 2024 18:18:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20CanteenSettingItemEnumType=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=A0=A1=E9=AA=8C=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Setting/Services/Implements/CanteenSettingService.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs b/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs index 19ab77a0..fa8bb2fd 100644 --- a/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs +++ b/Src/Dlhis.Canteen/Setting/Services/Implements/CanteenSettingService.cs @@ -103,12 +103,10 @@ public class CanteenSettingService : ICanteenSettingService // 对 InitBalance 进行 decimal 转换验证 if (!decimal.TryParse(request.Value, out _)) { - throw new UserFriendlyException("InitBalance 参数无效。它应该是 decimal 类型"); + throw new UserFriendlyException($"{request.Item} 参数无效。它应该是 decimal 类型"); } } - - public async Task SetEnableAsync(CanteenSettingSetEnableRequest request) { var entity = await _context.Queryable().FirstAsync(x => x.Id == request.Id);