fix 移除无效代码

This commit is contained in:
2024-11-14 15:49:06 +08:00
parent 31f406d6d3
commit 96a1cdb6c5
2 changed files with 1 additions and 31 deletions

View File

@@ -1,30 +0,0 @@
using Dlhis.Canteen.Setting.Services;
using Dlhis.Entity.Canteen.Enums;
using Kurisu.AspNetCore.Authentication.Abstractions;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Services;
namespace Dlhis.Canteen.Order.Services;
public abstract class BaseOrderService
{
private readonly IDbContext _dbContext;
private readonly ICurrentUser _currentUser;
private readonly ILogger _logger;
private Dictionary<CanteenSettingItemEnumType, string> _settings;
public BaseOrderService(ICanteenSettingService canteenSettingService,
IDbContext dbContext,
ICurrentUser currentUser,
ILogger logger)
{
_dbContext = dbContext;
_currentUser = currentUser;
_logger = logger;
}
protected ILogger Logger => _logger;
protected IDbContext DbContext => _dbContext;
protected ICurrentUser CurrentUser => _currentUser;
}

View File

@@ -415,7 +415,7 @@ public class OrderService : IOrderService
vc.Reverse(); vc.Reverse();
data.UserCode = string.Join("", vc); data.UserCode = string.Join("", vc);
} }
catch (Exception e) catch (Exception)
{ {
//ignore //ignore
} }