Commit a9f0cc28 authored by 潘栩锋's avatar 潘栩锋 🚴

中心收卷 写错了 error 判断

parent 8bf1202a
......@@ -97,7 +97,7 @@ namespace FLY.Winder.Server
{
if (propertyInfo.GetCustomAttributes(typeof(IsErrorAttribute), false).Count() > 0)
{
error_accessory_property.Add(propertyInfo.Name);
error_winder_property.Add(propertyInfo.Name);
}
}
......@@ -180,7 +180,7 @@ namespace FLY.Winder.Server
//获取描述
var type = sender.GetType();
var property = type.GetProperty(e.PropertyName);
bool b = (bool)property.GetValue(type);
bool b = (bool)property.GetValue(sender,null);
//肯定有,没有就让它出错!!!
string desp = (property.GetCustomAttributes(typeof(DescriptionAttribute), false).First() as DescriptionAttribute).Description;
bool offIsError = (property.GetCustomAttributes(typeof(IsErrorAttribute), false).First() as IsErrorAttribute).OffIsError;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment