TCL电子猫眼

This commit is contained in:
2026-02-27 15:53:42 +08:00
parent 6196311cb7
commit 10e3a135dd
12 changed files with 128 additions and 33 deletions

View File

@@ -407,12 +407,12 @@ namespace RCUHost.Implement
{
hostModal.Modal = new RoomTypeModalCache() { ModalAddress = device.Value.Address };
}
if (hostModal.Modal!=null)
if (hostModal.Modal != null)
{
if (string.IsNullOrEmpty(hostModal.Modal.ModalAddress))
{
hostModal.Modal.ModalAddress = device.Value.Address;
}
hostModal.Modal.ModalAddress = device.Value.Address;
}
}
}
else
@@ -549,6 +549,9 @@ namespace RCUHost.Implement
string TCLcuid = host.TCLCUID;
string skillid = host.TCLSkillID;
string ebell_rtsp = host.EBell_RSTP;
int du = host.EBell_TV_duration;
//如果是息屏
//004000022
if (device.Value.Address.Equals("004000022"))
@@ -564,12 +567,26 @@ namespace RCUHost.Implement
{
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "SIP");
}
if (hotelcode.Equals("1085"))
//if (hotelcode.Equals("1085"))
//{
// if (hostModal.Modal.ModalAddress.Equals("004000021"))
// {
// TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
// }
//}
//这个是电子门铃
if (hostModal.Modal.ModalAddress.Equals("004000021"))
{
if (hostModal.Modal.ModalAddress.Equals("004000021"))
Dictionary<string, string> ddd = new Dictionary<string, string>();
if (!string.IsNullOrEmpty(ebell_rtsp))
{
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
ddd.Add("url",ebell_rtsp);
ddd.Add("display_duration",du.ToString());
}
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "DOORBELL",0,ddd);
}
}

View File

@@ -631,12 +631,26 @@ namespace RCUHost.Implement
{
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "SIP");
}
if (hotelcode.Equals("1085"))
//if (hotelcode.Equals("1085"))
//{
// if (hostModal.Modal.ModalAddress.Equals("004000023"))
// {
// TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
// }
//}
string ebell_rtsp = host.EBell_RSTP;
int du = host.EBell_TV_duration;
if (hostModal.Modal.ModalAddress.Equals("004000021"))
{
if (hostModal.Modal.ModalAddress.Equals("004000023"))
Dictionary<string, string> ddd = new Dictionary<string, string>();
if (!string.IsNullOrEmpty(ebell_rtsp))
{
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
ddd.Add("url", ebell_rtsp);
ddd.Add("display_duration", du.ToString());
}
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "DOORBELL", 0, ddd);
}
}
#endregion