Browse Source

开店宝押金政策接口补充

lcl 2 years ago
parent
commit
640936b309
1 changed files with 19 additions and 0 deletions
  1. 19 0
      Areas/Api/Controllers/KdbController.cs

+ 19 - 0
Areas/Api/Controllers/KdbController.cs

@@ -24,6 +24,25 @@ namespace MySystem.Areas.Api.Controllers.v1
 
 
 
+        #region 获取押金政策
+        public string GetDepositList(string value)
+        {
+            string content = "";
+            try
+            {
+                JsonData data = JsonMapper.ToObject(value);
+                string depositId = data["depositId"].ToString();
+                content = PublicImportDataService.Instance.GetDepositAmount(depositId);
+            }
+            catch(Exception ex)
+            {
+                function.WriteLog(DateTime.Now.ToString() + "\n" + ex.ToString(), "获取开店宝政策异常");
+            }
+            return content;
+        }
+        #endregion
+
+
         #region 设置押金
         public string SetDeposit(string value)
         {