Revert "fix(sac): 修复预览页序列化 SacInfo 时 TypeId 触发 IsGenericParameter 异常"
This reverts commit ca74095e0c.
This commit is contained in:
@@ -117,12 +117,6 @@ namespace YLErp.Modules.SuperviseReportModule.SAC.Common
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = true)]
|
||||
public class SacDescriptionAttribute : Attribute
|
||||
{
|
||||
// Attribute.TypeId 本质是 System.Type,Newtonsoft 序列化会触发
|
||||
// "Method may only be called on a Type for which Type.IsGenericParameter is true."
|
||||
// 预览页用 ToJson() 序列化 SacInfo/List<SacInfo> 时崩溃,故显式跳过该成员。
|
||||
// (13.0.1 安全版对 Type 成员序列化行为变更后暴露此问题)
|
||||
public bool ShouldSerializeTypeId() => false;
|
||||
|
||||
/// <summary>
|
||||
/// 字段名
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user