Browse Source

修复发分润bug

lcl 1 year ago
parent
commit
750d5f5988
2 changed files with 1 additions and 3 deletions
  1. 1 1
      AppStart/Helper/SycnProfitServiceV3.cs
  2. 0 2
      Controllers/HomeController.cs

+ 1 - 1
AppStart/Helper/SycnProfitServiceV3.cs

@@ -110,7 +110,7 @@ namespace MySystem
                 string ChangeAmount = dr["ProfitAmount"].ToString();
                 string Remark = dr["Remark"].ToString();
                 num += 1;
-                sql += "update UserAccount set BalanceAmount=BalanceAmount+" + dr[1].ToString() + ",TotalAmount=TotalAmount+" + dr[1].ToString() + " where Id=" + dr["UserId"].ToString() + ";";
+                sql += "update UserAccount set BalanceAmount=BalanceAmount+" + dr[2].ToString() + ",TotalAmount=TotalAmount+" + dr[2].ToString() + " where Id=" + dr["UserId"].ToString() + ";";
                 sql += "insert into UserAccountRecord (CreateDate,UpdateDate,UserId,ChangeType,ChangeAmount,Remark) values ('" + CreateDate + "','" + UpdateDate + "'," + UserId + "," + ChangeType + "," + ChangeAmount + ",'" + Remark + "');";
                 if(num >= 20)
                 {

+ 0 - 2
Controllers/HomeController.cs

@@ -72,7 +72,5 @@ namespace MySystem.Controllers
             db.Dispose();
             return "ok";
         }
-    
-    
     }
 }