瀏覽代碼

wifi换绑接口

lcl 7 月之前
父節點
當前提交
7313cb716f
共有 1 個文件被更改,包括 22 次插入0 次删除
  1. 22 0
      Areas/Api/Controllers/OutApiController.cs

+ 22 - 0
Areas/Api/Controllers/OutApiController.cs

@@ -108,6 +108,28 @@ namespace MySystem.Areas.Api.Controllers.v1
         }
         #endregion
 
+        #region WIFI换绑
+        [HttpPost]
+        [Route("/kxs/changebind/wifi")]
+        public Dictionary<string, object> ChangeBindWifi()
+        {
+            StreamReader sr = new StreamReader(Request.Body);
+            string requestMes = sr.ReadToEnd();
+            if (string.IsNullOrEmpty(requestMes))
+            {
+                return new Dictionary<string, object>();
+            }
+            string content = Newtonsoft.Json.JsonConvert.SerializeObject(Request.Headers) + "#cut#" + requestMes;
+            function.WriteLog(content, "WIFI换绑推送消息");
+            string fileName = function.MD5_16(Guid.NewGuid().ToString());
+            RedisDbconn.Instance.AddList("kxs_changebindwifi_list", content + "#cut#" + fileName);
+            Dictionary<string, object> obj = new Dictionary<string, object>();
+            obj.Add("resCode", 200);
+            obj.Add("resMsg", "success");
+            return obj;
+        }
+        #endregion
+
 
         // [Route("/api/v1/{c1}/{c2}")]
         // public JsonResult ToApServer(string c1, string c2, string value)