Browse Source

盟主推荐奖励888问题修复

lcl 1 year ago
parent
commit
93e734f4ea
1 changed files with 3 additions and 2 deletions
  1. 3 2
      AppStart/Helper/AlipayPayBack2Service.cs

+ 3 - 2
AppStart/Helper/AlipayPayBack2Service.cs

@@ -861,9 +861,10 @@ namespace MySystem
         {
             int level = 0;
             Users orderuser = db.Users.FirstOrDefault(m => m.Id == UserId) ?? new Users();
-            if(!string.IsNullOrEmpty(orderuser.ParentNav))
+            string ParentNav = orderuser.ParentNav + "," + UserId + ",";
+            if(!string.IsNullOrEmpty(ParentNav))
             {
-                string[] ParentNavList = orderuser.ParentNav.Replace(",,", ",").TrimEnd(',').Split(',');
+                string[] ParentNavList = ParentNav.Replace(",,", ",").TrimEnd(',').Split(',');
                 Array.Reverse(ParentNavList);
                 foreach(string ParentUserId in ParentNavList)
                 {