فهرست منبع

设置费率bug修复

lcl 1 ماه پیش
والد
کامیت
23b5319a9c
2فایلهای تغییر یافته به همراه11 افزوده شده و 10 حذف شده
  1. 10 9
      Controllers/HomeController.cs
  2. 1 1
      Util/HaoDa/HaoDaFeeHelper.cs

+ 10 - 9
Controllers/HomeController.cs

@@ -130,15 +130,16 @@ namespace MySystem.Controllers
 
         public string test()
         {
-            WebCMSEntities db = new WebCMSEntities();
-            MerchantAddInfo AddInfo = db.MerchantAddInfo.FirstOrDefault(m => m.Id == 1) ?? new MerchantAddInfo();
-            db.Dispose();
-            // string result = HaoDaHelper.Instance.AddNewMerchant(AddNewMerchantSetUtil.SetValue(AddInfo), AddInfo.BrandId, AddInfo.AgentName);
-            CheckWeChatSignService.Instance.StartDo(new QueryMerchantStatus()
-            {
-                MerchantId = AddInfo.Id.ToString(),
-                MerchantNo = AddInfo.MchtNo,
-            });
+            // WebCMSEntities db = new WebCMSEntities();
+            // MerchantAddInfo AddInfo = db.MerchantAddInfo.FirstOrDefault(m => m.Id == 1) ?? new MerchantAddInfo();
+            // db.Dispose();
+            // // string result = HaoDaHelper.Instance.AddNewMerchant(AddNewMerchantSetUtil.SetValue(AddInfo), AddInfo.BrandId, AddInfo.AgentName);
+            // CheckWeChatSignService.Instance.StartDo(new QueryMerchantStatus()
+            // {
+            //     MerchantId = AddInfo.Id.ToString(),
+            //     MerchantNo = AddInfo.MchtNo,
+            // });
+            // HaoDaFeeHelper.Instance.SetFee("28492|0.30");
             return "ok";
         }
 

+ 1 - 1
Util/HaoDa/HaoDaFeeHelper.cs

@@ -55,7 +55,7 @@ public class HaoDaFeeHelper
                 // string FeeRate = addinfo.FeeRate;
                 if(string.IsNullOrEmpty(FeeRate)) FeeRate = "0.38";
                 bool op = true;
-                int channel = int.Parse(addinfo.AgentName);
+                int channel = int.Parse(function.CheckInt(addinfo.AgentName));
                 int reqCount = 0;
                 while(op)
                 {