|
@@ -810,8 +810,8 @@ namespace MySystem
|
|
function.WriteLog("UserId:" + UserId, "训练营判断参与活动");
|
|
function.WriteLog("UserId:" + UserId, "训练营判断参与活动");
|
|
WebCMSEntities maindb = new WebCMSEntities();
|
|
WebCMSEntities maindb = new WebCMSEntities();
|
|
Users muser = maindb.Users.FirstOrDefault(m => m.Id == UserId) ?? new Users();
|
|
Users muser = maindb.Users.FirstOrDefault(m => m.Id == UserId) ?? new Users();
|
|
- string ParentNav = muser.ParentNav + "," + UserId + ",";
|
|
|
|
- string[] ParentNavList = ParentNav.Replace(",,", ",").Trim(',').Split(',');
|
|
|
|
|
|
+ string ParentNav = muser.ParentUserId + "," + UserId;
|
|
|
|
+ string[] ParentNavList = ParentNav.Split(',');
|
|
List<int> UserIds = new List<int>();
|
|
List<int> UserIds = new List<int>();
|
|
foreach(string IdString in ParentNavList)
|
|
foreach(string IdString in ParentNavList)
|
|
{
|
|
{
|