瀏覽代碼

修复立刷电签流量费分佣

lichunlei 3 年之前
父節點
當前提交
162aa8c243
共有 2 個文件被更改,包括 7 次插入1 次删除
  1. 1 1
      AppStart/Helper/StatService.cs
  2. 6 0
      Controllers/HomeController.cs

+ 1 - 1
AppStart/Helper/StatService.cs

@@ -965,7 +965,7 @@ namespace MySystem
                     DateTime TradeDate = trade.CreateDate.Value;
                     string TradeMonth = TradeDate.ToString("yyyyMM");
                     decimal FeeAmount = trade.FeeAmount; //流量费
-                    if (trade.ProductType == "1" || trade.ProductType == "4")
+                    if (trade.ProductType == "1" || trade.ProductType == "4" || trade.ProductType == "6")
                     {
                         FeeAmount = FeeAmount / 100;
                     }

+ 6 - 0
Controllers/HomeController.cs

@@ -130,6 +130,12 @@ namespace MySystem.Controllers
             StatService.Instance.dosomething1(date);
             return "ok";
         }
+        // 补流量费奖励
+        public string addflux(string date)
+        {
+            StatService.Instance.doFluxRecord(date);
+            return "ok";
+        }
         public string chkactprize(int Id = 0)
         {
             if (Id > 0)