From a32120b0baed01d5d0028c696cecba9acb12fdbe Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 30 一月 2024 17:07:32 +0800 Subject: [PATCH] 优化储能标题,优化分享权限页面背景色,修复可视对讲无法通知问题 --- HDL_ON/Common/HDLCommon.cs | 45 +++++++++++++++++++-------------------------- 1 files changed, 19 insertions(+), 26 deletions(-) diff --git a/HDL_ON/Common/HDLCommon.cs b/HDL_ON/Common/HDLCommon.cs index 8ef0a0d..4ebf51c 100644 --- a/HDL_ON/Common/HDLCommon.cs +++ b/HDL_ON/Common/HDLCommon.cs @@ -258,7 +258,7 @@ { try { - Console.WriteLine($"鎺ユ敹鍒版帹閫侊紝锛岋紝锛�.{Newtonsoft.Json.JsonConvert.SerializeObject(jpushMessageInfo).ToString()}"); + //Console.WriteLine($"鎺ユ敹鍒版帹閫侊紝锛岋紝锛�.{Newtonsoft.Json.JsonConvert.SerializeObject(jpushMessageInfo).ToString()}"); //Extras涓虹┖涓嶅鐞� if (string.IsNullOrEmpty(jpushMessageInfo.Extras)) return; @@ -312,31 +312,7 @@ //瀛楁鍏煎闂锛屽彧鑳界洿鎺ュ彇鍊间簡 var json = Newtonsoft.Json.Linq.JObject.Parse(jpushMessageInfo.expantContent); - try - { - //var pushHomeId = json["homeId"]; - //if (pushHomeId == null || string.IsNullOrEmpty(pushHomeId.ToString())){ - // Console.WriteLine("homeId is null"); - // return; - //} - var pushTime = json["pushTime"]; - if (pushTime == null) - { - //return; - } - else - { - if (!string.IsNullOrEmpty(pushTime.ToString())) - { - var pushDateTime = Utlis.UnixToDateTimeMS(Convert.ToInt64(pushTime)); - if (pushDateTime.AddSeconds(30) < DateTime.Now) - { - return; - } - } - } - } - catch { } + //1.瑙嗗璁插巶瀹剁被鍨� string interphoneTypeEnum = json["interphoneTypeEnum"].ToString(); @@ -375,6 +351,23 @@ } else if (interphoneTypeEnum == InterphoneType.HDL.ToString()) { + try + { + var pushTime = json["pushTime"]; + if (pushTime == null) + { + return; + } + if (!string.IsNullOrEmpty(pushTime.ToString())) + { + var pushDateTime = Utlis.UnixToDateTimeMS(Convert.ToInt64(pushTime)); + if (pushDateTime.AddSeconds(30) < DateTime.Now) + { + return; + } + } + } + catch { } //HDL Linphone 鐙勮�愬厠 eSVideoInfo.HomeId = jpushMessageInfo.HomeId; eSVideoInfo.callId = json["callId"].ToString(); -- Gitblit v1.8.0