lcl 2 жил өмнө
parent
commit
1e3118d093

+ 8 - 8
AppStart/Helper/PublicImportDataService.cs

@@ -112,7 +112,7 @@ namespace MySystem
             string result = function.PostWebRequest(reqUrl, req, headers, "application/json");
             return result;
         }
-        public string SetFee(string merNo, string sn, decimal fee)
+        public string SetFee(string merNo, string sn, decimal addRate, int fee)
         {
             // 2021092711IpAreT 降费特惠…刷卡交易手续费
             // 2020032508Nu0QCG 刷卡交易手续费
@@ -122,7 +122,7 @@ namespace MySystem
             rateDOs.Add(new SetDepositList()
             {
                 productSubType = "2020032508Nu0QCG",
-                updateValue = fee,
+                updateValue = addRate,
                 updateType = 0
             });
             // rateDOs.Add(new SetDepositList()
@@ -131,12 +131,12 @@ namespace MySystem
             //     updateValue = fee,
             //     updateType = 0
             // });
-            // rateDOs.Add(new SetDepositList()
-            // {
-            //     productSubType = "2020032508O4EWB6",
-            //     updateValue = fee,
-            //     updateType = 0
-            // });
+            rateDOs.Add(new SetDepositList()
+            {
+                productSubType = "2020032508O4EWB6",
+                updateValue = fee,
+                updateType = 0
+            });
             Dictionary<string, string> headers = new Dictionary<string, string>();
             headers.Add("X-Client-ID", clientId);
             headers.Add("X-Security", "RSA");

+ 9 - 0
Areas/Api/Controllers/JkController.cs

@@ -54,6 +54,15 @@ namespace MySystem.Areas.Api.Controllers.v1
                 string merNo = data["merNo"].ToString();
                 string sn = data["sn"].ToString();
                 decimal fee = decimal.Parse(data["fee"].ToString());
+                int addRate = 0;
+                if(fee == 0.63M) 
+                {
+                    addRate = 3;
+                }
+                else if(fee == 0.6M)
+                {
+                    fee = 0.63M;
+                }
                 content = PublicImportDataService.Instance.SetFee(merNo, sn, fee);
             }
             catch(Exception ex)