济南同派增加 高中风换成自动档的功能
This commit is contained in:
@@ -6306,7 +6306,7 @@ namespace WebSite.Controllers
|
||||
var uuu = JsonConvert.DeserializeObject<tandaren_upload>(jsonData);
|
||||
int roomtypeid = uuu.roomtype_id;
|
||||
var lll = uuu.CarbonVIPList;
|
||||
var rlist = RoomTypeModalManager.LoadAll(roomtypeid, 1);
|
||||
var rlist = RoomTypeModalManager.LoadAll(roomtypeid, 0);
|
||||
foreach (var item in lll)
|
||||
{
|
||||
var add = item.ModalAddress;
|
||||
@@ -6380,6 +6380,38 @@ namespace WebSite.Controllers
|
||||
public bool IsUploadBaoJing { get; set; }
|
||||
}
|
||||
|
||||
[HttpPost()]
|
||||
public ActionResult JiNanTongPai_Spec()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
var dic = CSRedisCacheHelper.HMGetAll(5, CacheKey.JiNan_TongPai_Spec);
|
||||
foreach (var item in dic)
|
||||
{
|
||||
var k = item.Key;
|
||||
var v = item.Value;
|
||||
DateTime ti = DateTime.Parse(v);
|
||||
if (k.Contains("_"))
|
||||
{
|
||||
var span = DateTime.Now - ti;
|
||||
if (span.TotalSeconds >= 60 && span.TotalMinutes <= 75)
|
||||
{
|
||||
string[] h_a = k.Split('_');
|
||||
Host host = new Host() { HostNumber = h_a[0], MAC = "" };
|
||||
HostModal hostModal = new HostModal() { Modal = new RoomTypeModal() { ModalAddress = h_a[1], Type = DeviceType.AirConditioner } };
|
||||
HostModalManager.SetDevice(host, hostModal, 0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
return Json(new { IsSuccess = true, Message = HttpContext.InnerLanguage("SaveSuccess") });
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return Json(new { IsSuccess = false, Message = HttpContext.InnerLanguage("SaveFailedBecause") + ex.Message });
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet()]
|
||||
public ActionResult GetAllModelName()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user