mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-03-29 12:43:25 +08:00
修复机构添加编辑的异常的bug
This commit is contained in:
@@ -78,7 +78,13 @@ namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
var org = user.Orgs.SingleOrDefault(u => u.Id == orgId);
|
||||
if (org == null)
|
||||
throw new Exception("未能找到指定对象信息");
|
||||
{
|
||||
return JsonHelper.Instance.Serialize(new TableData
|
||||
{
|
||||
msg ="未找到指定的节点",
|
||||
code = 500,
|
||||
});
|
||||
}
|
||||
cascadeId = org.CascadeId;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user