增加新的功能

This commit is contained in:
2026-03-13 19:28:17 +08:00
parent 4aa6bb31ef
commit 8ce4017100
7 changed files with 58 additions and 29 deletions

View File

@@ -2562,7 +2562,7 @@ namespace RCUHost.Implement
{
if (fanspeed == 2 || fanspeed == 3)
{
string KKKSpec = HostNNN + "_" + address;
string KKKSpec = HostNNN + "_" + address+"_"+HostID;
if (status == 1)
{
string ReportTime111 = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
@@ -2593,6 +2593,18 @@ namespace RCUHost.Implement
{
string KKey = CacheKey.HostModalStatus_Prefix + "_" + HostID + "_" + address;
var HHostModalData = CSRedisCacheHelper.Get_Partition<HostModal_Cache>(KKey);
if (HHostModalData==null)
{
HHostModalData = new HostModal_Cache();
HHostModalData.HostID = int.Parse(HostID);
HHostModalData.ModalType = DeviceType.AirConditioner;
HHostModalData.AirConditionData = new AirConditionData();
HHostModalData.Modal = new RoomTypeModalCache()
{
ModalAddress = address
};
}
if (HHostModalData != null)
{
HHostModalData.AirConditionData.AirStatus = status;
@@ -2629,11 +2641,8 @@ namespace RCUHost.Implement
}
CSRedisCacheHelper.Set_Partition(KKey, HHostModalData);
}
}
}
}
#endregion
}