添加 ETV语音电视的支持。另外修改一些BUG

This commit is contained in:
2026-01-08 08:38:29 +08:00
parent 599251d91b
commit 69baadd312
14 changed files with 497 additions and 13 deletions

View File

@@ -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)
//{
}
//}
}
}
}

View File

@@ -162,5 +162,11 @@ namespace Service.Implement
{
return ((ISysHotelRepository)(this.CurrentRepository)).LoadAll().Where(A=>!A.IsDeleted&&A.FCSPushEnable).ToList();
}
public SysHotel GetByETV_HotelId(string hotelid)
{
return ((ISysHotelRepository)(this.CurrentRepository)).GetByETV_HotelId(hotelid);
}
}
}