Sfoglia il codice sorgente

修复购买小盟主向上返888bug

lcl 1 anno fa
parent
commit
506ea813e7
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      AppStart/Helper/AlipayPayBack2Service.cs

+ 3 - 2
AppStart/Helper/AlipayPayBack2Service.cs

@@ -868,12 +868,13 @@ namespace MySystem
                 foreach(string ParentUserId in ParentNavList)
                 {
                     level += 1;
-                    UserRankItem user = PosCouponPrizeService.Instance.GetUserLevel(UserId) ?? new UserRankItem();
+                    int UserIdNum = int.Parse(function.CheckInt(ParentUserId));
+                    UserRankItem user = PosCouponPrizeService.Instance.GetUserLevel(UserIdNum) ?? new UserRankItem();
                     if(user.Id > 0)
                     {
                         if((user.UserType >= 1 || user.LeaderLevel > 0) && level > 1 && Money > 0)
                         {
-                            ChangeAccount(db, order, UserId, Money, ChangeType);
+                            ChangeAccount(db, order, user.Id, Money, ChangeType);
                             Money = 0;
                         }
                     }