From 97a1864253a645116194d20402f9e5f705338f65 Mon Sep 17 00:00:00 2001 From: "DESKTOP-G961P6V\\Zhh" <839860190@qq.com> Date: Tue, 4 Jun 2024 18:59:34 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E7=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ThirdInterfaces/ThirdInterfaceManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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