调整BaseWareHouseService

This commit is contained in:
FanLian
2023-07-14 15:47:52 +08:00
parent 4bada98d09
commit b7f15702a2
2 changed files with 4 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ namespace Tnb.WarehouseMgr
foreach (var serviceType in serviceTypes)
{
var callerName = serviceType.GetCustomAttribute<CallerAttribute>()?.Name ?? string.Empty;
if (callerName.IsNullOrEmpty() && !serviceType.IsNull())
if (!callerName.IsNullOrEmpty())
{
var obj = Activator.CreateInstance(serviceType) as IWHStorageService;
if (obj == null) continue;