mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-19 01:58:01 +08:00
修复机构添加编辑的异常的bug
This commit is contained in:
@@ -18,13 +18,7 @@ namespace OpenAuth.Mvc.Controllers
|
||||
{
|
||||
return View();
|
||||
}
|
||||
public ActionResult Assign(string firstId, string key)
|
||||
{
|
||||
ViewBag.FirstId = firstId;
|
||||
ViewBag.ModuleType = key;
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
public string LoadForUser(string firstId)
|
||||
{
|
||||
var orgs = OrgApp.LoadForUser(firstId);
|
||||
@@ -72,7 +66,6 @@ namespace OpenAuth.Mvc.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// 删除指定ID的组织
|
||||
/// <para>Id为逗号分开的字符串</para>
|
||||
/// </summary>
|
||||
/// <returns>System.String.</returns>
|
||||
[HttpPost]
|
||||
|
@@ -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