添加 ETV语音电视的支持。另外修改一些BUG
This commit is contained in:
@@ -791,6 +791,16 @@ namespace Service.Implement
|
||||
{
|
||||
if (prop.Name == "Month" + DateTime.Now.Month.ToString() && Convert.ToInt16(prop.GetValue(hotelSeason, null)) == item.Season)//当前月份所属该季节,则发送命令给rcu设置空调
|
||||
{
|
||||
//System.Threading.Thread.Sleep(item.DelayTime * 1000);//延迟执行
|
||||
//foreach (HostModal hostModal in hostModals)
|
||||
//{
|
||||
// //host 只需要hostnumber和mac
|
||||
// //hostmodal只需要 address //和type
|
||||
// //device.Address = hostModal.Modal.ModalAddress;
|
||||
// //device.Type = hostModal.Modal.Type;
|
||||
// HostModalManager.SetDevice(host, hostModal, item.Status, 0, item.SettingTemp, item.FanSpeed, item.Mode, 0);//0表示不变
|
||||
//}
|
||||
|
||||
var TTT = new Tuple<Host, HotelAirControl, List<HostModal>>(host, item, hostModals);
|
||||
Task.Factory.StartNew((state) =>
|
||||
{
|
||||
@@ -810,8 +820,8 @@ namespace Service.Implement
|
||||
HostModalManager.SetDevice(QQ0, hostModal, QQ1.Status, 0, QQ1.SettingTemp, QQ1.FanSpeed, QQ1.Mode, 0);//0表示不变
|
||||
}
|
||||
}, TTT);
|
||||
try
|
||||
{
|
||||
//try
|
||||
//{
|
||||
//这段代码在生产环境中不管用,很奇怪
|
||||
//string KeyMission = System.Guid.NewGuid().ToString("N");
|
||||
|
||||
@@ -835,12 +845,12 @@ namespace Service.Implement
|
||||
//CSRedisCacheHelper.Set_Partition<MissonData>(MKey, m, 1);
|
||||
|
||||
//DelayExe_Task(host, item.DelayTime, KeyMission);
|
||||
break;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
// break;
|
||||
//}
|
||||
//catch (Exception)
|
||||
//{
|
||||
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user