|
@@ -17,8 +17,9 @@ namespace WCS.WorkEngineering.Extensions
|
|
|
/// <returns></returns>
|
|
|
public void StorageStationIsForbid()
|
|
|
{
|
|
|
- var config = RedisHub.Default.Get("ForbidTubuEnter").Split(",");
|
|
|
- if (config.Contains(Entity.Code)) throw new KnownException("当前入库口已被禁用,请联系运维人员了解具体情况", LogLevelEnum.High);
|
|
|
+ var config = RedisHub.Default.Check("ForbidTubuEnter") ?? throw new Exception("请在Redis中配置互斥量值");
|
|
|
+ var configs = config.Split(",");
|
|
|
+ if (configs.Contains(Entity.Code)) throw new KnownException("当前入库口已被禁用,请联系运维人员了解具体情况", LogLevelEnum.High);
|
|
|
}
|
|
|
}
|
|
|
}
|