This commit is contained in:
tianshuanbao
2025-12-11 09:53:23 +08:00
parent 83247ec0a2
commit 7cab01b5ec
285 changed files with 11 additions and 209345 deletions

View File

@@ -1177,7 +1177,7 @@ namespace RCUHost.Implement
HostModalRecord hostModalRecord;
switch (StatusFlag)
{
case 0://0关闭设备
case 2://关闭设备
if (hostModal.UpdateTime.HasValue)
{
hostModal.Time += Convert.ToInt32((now - hostModal.UpdateTime.Value).TotalMinutes);
@@ -1213,7 +1213,7 @@ namespace RCUHost.Implement
}
}
break;
case 1://1打开设备且当前设备处于关闭状态
case 1://1打开设备
hostModal.UpdateTime = now;
FinallyData.UpdateTime = now;
//阿宝这里修改
@@ -1245,17 +1245,7 @@ namespace RCUHost.Implement
}
}
break;
case 2://2打开设备且当前设备处于打开状态
hostModal.UpdateTime = now;
FinallyData.UpdateTime = now;
try
{
HostModalRepository.Update(FinallyData);
}
catch (Exception ex)
{
logger.Error(FinallyData.HostID + ":" + host.SysHotel.Code + " " + hostModal.Modal.ModalAddress);
}
default:
break;
}