浏览代码

盛付通循环和激活不扣押金
红包改为100个
蒲总账号可分润
盛付通流量分佣46,分10元

lichunlei 3 年之前
父节点
当前提交
d98a8ef1ca

+ 4 - 0
AppStart/Helper/Profit/ProfitHelper.cs

@@ -2178,6 +2178,10 @@ namespace MySystem
                                         UserId = pos.UserId;
                                     }
                                 }
+                                if (string.IsNullOrEmpty(ParentNav) && pos.BuyUserId == 1 && pos.UserId == 1)
+                                {
+                                    ParentNav = ",0,";
+                                }
                                 if (!string.IsNullOrEmpty(ParentNav))
                                 {
                                     ParentNav += "," + UserId + ",";

+ 5 - 1
AppStart/Helper/StatService.cs

@@ -978,6 +978,10 @@ namespace MySystem
                     {
                         FluxProfit = 24;
                     }
+                    else if (trade.ProductType == "7" && FeeAmount == 46)
+                    {
+                        FluxProfit = 10;
+                    }
                     else if (trade.ProductType != "1" && FeeAmount == 48)
                     {
                         FluxProfit = 12;
@@ -988,7 +992,7 @@ namespace MySystem
                         PosMachinesTwo pos = db.PosMachinesTwo.FirstOrDefault(m => m.Id == forSnNo.SnId) ?? new PosMachinesTwo();
                         // PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId && m.Sort == 1);
                         PosMerchantInfo merchant = db.PosMerchantInfo.FirstOrDefault(m => m.Id == pos.BindMerchantId);
-                        if(merchant != null)
+                        if(merchant != null && pos.BrandId != 6)
                         {
                             bool checkExist = db.FluxProfitDetail.Any(m => m.MerNo == merchant.KqMerNo);
                             if (!checkExist && decimal.Parse(function.CheckNum(pos.SeoKeyword)) > 0)

+ 2 - 1
AppStart/Helper/SycnSpServer/SycnSpTradeService.cs

@@ -160,6 +160,7 @@ namespace MySystem
                                         {
                                             BrandId = 5;
                                         }
+                                        decimal SourceTradeAmount = TradeAmount;
                                         if (pos.Sort == 0 && pos.BrandId == 7)
                                         {
                                             decimal deposit = decimal.Parse(function.CheckNum(pos.SeoKeyword));
@@ -223,7 +224,7 @@ namespace MySystem
                                         }
                                         if (BankCardType == 1 || (BankCardType == 2 && pos.BrandId == 1) || (BankCardType == 2 && pos.BrandId == 3))
                                         {
-                                            pos.CreditTrade += TradeAmount;
+                                            pos.CreditTrade += SourceTradeAmount;
                                         }
                                         else if (BankCardType == 0)
                                         {

+ 4 - 4
AppStart/Timer/RedPackageHelper.cs

@@ -43,17 +43,17 @@ public class RedPackageHelper
                         List<decimal> list = new List<decimal>();
                         list.Add(88.88M);
                         TotalPrize -= 88.88M;
-                        for (int i = 1; i < 200; i++)
+                        for (int i = 1; i < 100; i++)
                         {
                             list.Add(0.88M);
                             TotalPrize -= 0.88M;
                         }
-                        for (int i = 0; i < 200; i++)
+                        for (int i = 0; i < 100; i++)
                         {
                             if (TotalPrize > 0)
                             {
-                                int BigPrize = function.get_Random(1, 200);
-                                decimal PrizeAmt = (decimal)function.get_Random(88, 400) / 100M;
+                                int BigPrize = function.get_Random(1, 100);
+                                decimal PrizeAmt = (decimal)function.get_Random(88, 1500) / 100M;
                                 if (TotalPrize > PrizeAmt)
                                 {
                                     list[BigPrize] += PrizeAmt;