Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hemei
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘栩锋
hemei
Commits
a9f0cc28
Commit
a9f0cc28
authored
Dec 30, 2019
by
潘栩锋
🚴
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中心收卷 写错了 error 判断
parent
8bf1202a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
WinderSystem.cs
...ect.FLY.Winder_20190413/FLY.Winder/Server/WinderSystem.cs
+2
-2
No files found.
Project.FLY.Winder_20190413/FLY.Winder/Server/WinderSystem.cs
View file @
a9f0cc28
...
@@ -97,7 +97,7 @@ namespace FLY.Winder.Server
...
@@ -97,7 +97,7 @@ namespace FLY.Winder.Server
{
{
if
(
propertyInfo
.
GetCustomAttributes
(
typeof
(
IsErrorAttribute
),
false
).
Count
()
>
0
)
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
...
@@ -180,7 +180,7 @@ namespace FLY.Winder.Server
//获取描述
//获取描述
var
type
=
sender
.
GetType
();
var
type
=
sender
.
GetType
();
var
property
=
type
.
GetProperty
(
e
.
PropertyName
);
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
;
string
desp
=
(
property
.
GetCustomAttributes
(
typeof
(
DescriptionAttribute
),
false
).
First
()
as
DescriptionAttribute
).
Description
;
bool
offIsError
=
(
property
.
GetCustomAttributes
(
typeof
(
IsErrorAttribute
),
false
).
First
()
as
IsErrorAttribute
).
OffIsError
;
bool
offIsError
=
(
property
.
GetCustomAttributes
(
typeof
(
IsErrorAttribute
),
false
).
First
()
as
IsErrorAttribute
).
OffIsError
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment