fix error when exception response has started

This commit is contained in:
2022-09-14 04:56:21 +08:00
parent 62ddd6698e
commit 239cd8bcbb
2 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ namespace SimApi.Attributes
throw new SimApiException(401);
}
//检测用户类型
if (Types.Intersect(loginInfo.Type).Count() == 0)
if (!Types.Intersect(loginInfo.Type).Any())
{
throw new SimApiException(403);
}