|
@@ -180,7 +180,19 @@ namespace MySystem
|
|
string subUserIdStr = "," + sub.UserId + ",";
|
|
string subUserIdStr = "," + sub.UserId + ",";
|
|
if(sub.ChkActCount >= 50 || sub.UserLevel >= 5 || Historys.Contains(sub.UserId))
|
|
if(sub.ChkActCount >= 50 || sub.UserLevel >= 5 || Historys.Contains(sub.UserId))
|
|
{
|
|
{
|
|
- user.ActCount -= sub.ChkActCount;
|
|
|
|
|
|
+ // user.ActCount -= sub.ChkActCount;
|
|
|
|
+ List<RecommandKingItem> mysubs = users.Where(m => m.ParentNav.Contains(subUserIdStr) && (m.ChkActCount >= 50)).ToList();
|
|
|
|
+ foreach(RecommandKingItem mysub in mysubs)
|
|
|
|
+ {
|
|
|
|
+ List<RecommandKingItem> mysubChildren = users.Where(m => m.ParentUserId == mysub.UserId).ToList();
|
|
|
|
+ foreach(RecommandKingItem mysubChild in mysubChildren)
|
|
|
|
+ {
|
|
|
|
+ if(mysubChild.ChkActCount >= 50)
|
|
|
|
+ {
|
|
|
|
+ user.ActCount -= mysubChild.ChkActCount;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
function.WriteLog("减去" + sub.ChkActCount, "推荐王最终的达标创客数量分析");
|
|
function.WriteLog("减去" + sub.ChkActCount, "推荐王最终的达标创客数量分析");
|
|
}
|
|
}
|
|
else if(users.Any(m => m.ParentNav.Contains(subUserIdStr) && (m.ChkActCount >= 50 || m.UserLevel >= 5 || Historys.Contains(sub.UserId))))
|
|
else if(users.Any(m => m.ParentNav.Contains(subUserIdStr) && (m.ChkActCount >= 50 || m.UserLevel >= 5 || Historys.Contains(sub.UserId))))
|