Ver Fonte

补录奖励,金额默认值问题

lcl há 2 anos atrás
pai
commit
39fe9de607

+ 6 - 0
Areas/Admin/Controllers/MainServer/SysToolsController.cs

@@ -1033,6 +1033,8 @@ namespace MySystem.Areas.Admin.Controllers
                         if(Deposit == 228) RewardAmount = 61;
                         if(Deposit == 380) RewardAmount = 151;
                         if(Deposit == 399) RewardAmount = 100;
+                        if(Deposit == 0) RewardAmount = 0;
+
                     }
                     else if(pos.BrandId == 23 || pos.BrandId == 24 || pos.BrandId == 25 || pos.BrandId == 26)
                     {
@@ -1043,6 +1045,10 @@ namespace MySystem.Areas.Admin.Controllers
                             db.SaveChanges();
                             RewardAmount = trade.TradeAmount * 0.15M;
                         }
+                        else
+                        {
+                            RewardAmount = 0;
+                        }
                     }
                     if(RewardAmount > 0)
                     {