diff --git a/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs b/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs index 8caeb99..83f6f80 100644 --- a/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs +++ b/src/Shentun.Peis.Domain/ThirdInterfaces/ThirdInterfaceManager.cs @@ -123,11 +123,11 @@ namespace Shentun.Peis.ThirdInterfaces Type type = typeof(ThirdInterfaceTypeFlag); //从规定的约束内搜索字段 //约束有是静态成员,是公共成员,和返回父级的公共静态成员, - FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy); - if (fields.Where(o=>o.GetValue(null) == entity.ThirdInterfaceType).Count() == 0) - { - throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值"); - } + //FieldInfo[] fields = type.GetFields(BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy); + //if (fields.Where(o=>o.GetValue(null) == entity.ThirdInterfaceType).Count() == 0) + //{ + // throw new ArgumentException($"接口类型参数为:{entity.ThirdInterfaceType},是无效值"); + //} //if (entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.LisRequest // && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ChargeRequest // && entity.ThirdInterfaceType != ThirdInterfaceTypeFlag.ImportLisResult