增加一系列功能
屏蔽 下位机 故障上报上报正常的数据。增加 日志系统的功能
This commit is contained in:
@@ -157,7 +157,7 @@ namespace RCUHost.Implement
|
||||
//来一个数据,把所有的地址拼接起来
|
||||
string YiJingChuLiGuo = CacheKey.AllReadyDealWith0E_Prefix + "_" + HostNumberOnly;
|
||||
MemoryCacheHelper.Delete(YiJingChuLiGuo);
|
||||
ProcessModal_NEW_NEW(host, status.Devices, isTriggerWelcomeMsg, context.MessageID, context.IsMonitor, context.Data, status);//更新灯光及其他回路状态
|
||||
ProcessModal_NEW_NEW(host, status.Devices, isTriggerWelcomeMsg, context.MessageID, context.IsMonitor, context.Data, status,context.RemoteEndPoint.ToString());//更新灯光及其他回路状态
|
||||
string nnn = VVV1 + VVV2;
|
||||
if (!string.IsNullOrEmpty(nnn))
|
||||
{
|
||||
@@ -224,7 +224,7 @@ namespace RCUHost.Implement
|
||||
public static string Missionsys_Address = ConfigurationManager.AppSettings["missionsys_address"];
|
||||
public static string MQTTInfo_report_url = ConfigurationManager.AppSettings["debug_log_report_url"].ToString();
|
||||
|
||||
private void ProcessModal_NEW_NEW(Host host, ConcurrentDictionary<string, Device> devices, bool IsTriggerWelcomeMsg, string ContextMessageId, bool ismonitor, byte[] OriginalByteList, Status yuanshidata)
|
||||
private void ProcessModal_NEW_NEW(Host host, ConcurrentDictionary<string, Device> devices, bool IsTriggerWelcomeMsg, string ContextMessageId, bool ismonitor, byte[] OriginalByteList, Status yuanshidata,string EEndPoint)
|
||||
{
|
||||
string UUID = "9dc6a0ee-dcf1-4385-b05f-09cb463838cd";
|
||||
UUID = host.FCS_locationUUID;
|
||||
@@ -639,8 +639,8 @@ namespace RCUHost.Implement
|
||||
// }
|
||||
//}
|
||||
|
||||
string ebell_rtsp = host.EBell_RSTP;
|
||||
int du = host.EBell_TV_duration;
|
||||
string ebell_rtsp = host.EBell_RSTP;
|
||||
int du = host.EBell_TV_duration;
|
||||
if (hostModal.Modal.ModalAddress.Equals("004000021"))
|
||||
{
|
||||
Dictionary<string, string> ddd = new Dictionary<string, string>();
|
||||
@@ -2025,6 +2025,7 @@ namespace RCUHost.Implement
|
||||
d1.fault_list = exception_list;
|
||||
d1.report_count = shebei_changeaction_list.Count;
|
||||
d1.fault_count = exception_list.Count;
|
||||
d1.ip = EEndPoint;
|
||||
|
||||
string sss111 = Newtonsoft.Json.JsonConvert.SerializeObject(d1);
|
||||
CSRedisCacheHelper.Publish("redis-0X36-0X0F", sss111);
|
||||
@@ -2212,7 +2213,10 @@ namespace RCUHost.Implement
|
||||
case 1://状态:1离线,0在线
|
||||
record.AbnormalStatus = fault.Value.Data;
|
||||
record.StatusDate = now;
|
||||
RR.FCS_PushData(FCS_RCU_Device_Offline, host.FCS_locationUUID, PropertyUUID, FCSLoginUrl, FCSLoginUserName, FCSLoginPassWord, host.SysHotel.Code, host.RoomNumber);
|
||||
if (record.AbnormalStatus == 1)
|
||||
{
|
||||
RR.FCS_PushData(FCS_RCU_Device_Offline, host.FCS_locationUUID, PropertyUUID, FCSLoginUrl, FCSLoginUserName, FCSLoginPassWord, host.SysHotel.Code, host.RoomNumber);
|
||||
}
|
||||
//sbSQL.Append("AbnormalStatus=" + record.AbnormalStatus + ",StatusDate=GETDATE()");
|
||||
break;
|
||||
case 2://电量
|
||||
|
||||
Reference in New Issue
Block a user