增加新的功能
This commit is contained in:
@@ -6385,6 +6385,9 @@ namespace WebSite.Controllers
|
||||
{
|
||||
try
|
||||
{
|
||||
//Host hostua = new Host() { HostNumber = "096008126073", MAC = "" };
|
||||
//HostModal hostModal1 = new HostModal() { Modal = new RoomTypeModal() { ModalAddress = "007001000", Type = DeviceType.AirConditioner } };
|
||||
//HostModalManager.SetDevice(hostua, hostModal1, 0, 0, 25, 0, 1, 0);
|
||||
|
||||
var dic = CSRedisCacheHelper.HMGetAll(5, CacheKey.JiNan_TongPai_Spec);
|
||||
foreach (var item in dic)
|
||||
@@ -6398,9 +6401,20 @@ namespace WebSite.Controllers
|
||||
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);
|
||||
|
||||
var hostnumber = h_a[0];
|
||||
var address = h_a[1];
|
||||
var hostid = h_a[2];
|
||||
Host host = new Host() { HostNumber = hostnumber, MAC = "" };
|
||||
HostModal hostModal = new HostModal() { Modal = new RoomTypeModal() { ModalAddress = address, Type = DeviceType.AirConditioner } };
|
||||
|
||||
|
||||
string KKey = CacheKey.HostModalStatus_Prefix + "_" + hostid + "_" + address;
|
||||
var HHostModalData = CSRedisCacheHelper.Get_Partition<HostModal_Cache>(KKey);
|
||||
|
||||
var temp = HHostModalData.AirConditionData.SettingTemp;
|
||||
var mode = HHostModalData.AirConditionData.Mode;
|
||||
HostModalManager.SetDevice(host, hostModal, 0, 0, temp, 0, mode, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6408,6 +6422,7 @@ namespace WebSite.Controllers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger.Error("同派出错:"+ex.Message);
|
||||
return Json(new { IsSuccess = false, Message = HttpContext.InnerLanguage("SaveFailedBecause") + ex.Message });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user