Bläddra i källkod

金控费率设置问题修复

lcl 1 år sedan
förälder
incheckning
5d0dbd3c75
2 ändrade filer med 8 tillägg och 1 borttagningar
  1. 2 1
      AppStart/Helper/SetDepositPostService.cs
  2. 6 0
      Controllers/HomeController.cs

+ 2 - 1
AppStart/Helper/SetDepositPostService.cs

@@ -75,7 +75,8 @@ namespace MySystem
                                     }
                                     if(pos.BrandId == 1 || pos.BrandId == 3) //金控
                                     {
-                                        string content = function.GetWebRequest("http://connect.kexiaoshuang.com/home/setfee?merNo=" + merchant.KqMerNo + "&sn=" + pos.PosSn + "&fee=" + Fee);
+                                        addRate = addRate * 100;
+                                        string content = function.GetWebRequest("http://connect.kexiaoshuang.com/home/setfee?merNo=" + merchant.KqMerNo + "&sn=" + pos.PosSn + "&fee=" + Fee + "&addRate=" + addRate);
                                         if(content.Contains("|"))
                                         {
                                             content = content.Split("|")[1];

+ 6 - 0
Controllers/HomeController.cs

@@ -214,6 +214,12 @@ namespace MySystem.Controllers
             //     SetDepositPostService.Instance.BoxFee(dr["KqMerNo"].ToString(), "0.60");
             // }
 
+            // DataTable dt = CustomerSqlConn.dtable("select Id,DownFeeMan from PosMachinesTwo where BrandId in (1,3) and DownFeeFlag=1 order by DownFeeDate desc", MysqlConn.SqlConnStr);
+            // foreach(DataRow dr in dt.Rows)
+            // {
+            //     RedisDbconn.Instance.AddList("SetDepositPostQueue", "{\"RecordId\":\"\",\"PosId\":\"" + dr["Id"].ToString() + "\",\"Fee\": \"0.6\",\"Kind\": \"2\",\"OpMan\": \"" + dr["DownFeeMan"].ToString() + "\"}");
+            // }
+
             return result;
         }