|
@@ -67,7 +67,7 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
user.ParentUserId = puser.Id;
|
|
user.ParentUserId = puser.Id;
|
|
|
user.ParentNav = puser.ParentNav + "," + puser.Id + ",";
|
|
user.ParentNav = puser.ParentNav + "," + puser.Id + ",";
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
- RedisDbconn.Instance.Clear("Users:" + user.Id);
|
|
|
|
|
|
|
+ function.WriteLog(DateTime.Now.ToString() + ":下级:" + MakerCode + ", 上级:" + ParentMakerCode, "换线日志");
|
|
|
return "success";
|
|
return "success";
|
|
|
}
|
|
}
|
|
|
return "创客编号不存在";
|
|
return "创客编号不存在";
|
|
@@ -85,7 +85,6 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
user.ParentUserId = puser.Id;
|
|
user.ParentUserId = puser.Id;
|
|
|
user.ParentNav = puser.ParentNav + "," + puser.Id + ",";
|
|
user.ParentNav = puser.ParentNav + "," + puser.Id + ",";
|
|
|
db.SaveChanges();
|
|
db.SaveChanges();
|
|
|
- RedisDbconn.Instance.Clear("Users:" + user.Id);
|
|
|
|
|
RelationForUserSub(user.Id, user);
|
|
RelationForUserSub(user.Id, user);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|