浏览代码

分红金额为0

DuGuYang 1 年之前
父节点
当前提交
dac30a88d5
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Areas/Api/Controllers/v1/MainServer/ConsumersController.cs

+ 3 - 3
Areas/Api/Controllers/v1/MainServer/ConsumersController.cs

@@ -54,8 +54,8 @@ namespace MySystem.Areas.Api.Controllers.v1
             var Amount = 0.00M;
             var Amount2 = 0.00M;
             var consumer = Services.Main.ConsumersService.Query(" and WechatOpenId='" + OpenId + "'");
-            Amount = Services.Main.ConsumerProfitService.Sum(" and ConsumerId=" + consumer.Id + "", "GetMoney");
-            Amount2 = Services.Main2.ConsumerProfitService.Sum(" and ConsumerId=" + consumer.Id + "", "GetMoney");
+            // Amount = Services.Main.ConsumerProfitService.Sum(" and ConsumerId=" + consumer.Id + "", "GetMoney");
+            // Amount2 = Services.Main2.ConsumerProfitService.Sum(" and ConsumerId=" + consumer.Id + "", "GetMoney");
             TotalAmount = Amount + Amount2;
             if (consumer.Id > 0)
             {
@@ -63,7 +63,7 @@ namespace MySystem.Areas.Api.Controllers.v1
                 NickName = consumer.NickName;
             }
             var token = PublicFunction.AppToken(consumer.Id, JwtSecret, JwtIss);
-            Obj.Add("Amount", TotalAmount); //累计返现金额
+            Obj.Add("Amount", 0.00); //累计返现金额
             Obj.Add("HeadPhoto", HeadPhoto); //头像
             Obj.Add("NickName", NickName); //昵称
             Obj.Add("Token", token); //token