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);