|
|
@@ -86,6 +86,28 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ #region WIFI解绑
|
|
|
+ [HttpPost]
|
|
|
+ [Route("/kxs/unbind/wifi")]
|
|
|
+ public Dictionary<string, object> UnBindWifi()
|
|
|
+ {
|
|
|
+ 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_unbindwifi_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)
|