From aba35cb585f85f1f181dc8616df2cf391d9181db Mon Sep 17 00:00:00 2001
From: Davin <591807572@qq.com>
Date: 星期二, 25 七月 2023 16:22:00 +0800
Subject: [PATCH] feature 猫眼呼叫调试

---
 HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs b/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
index e583183..c67c196 100644
--- a/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
+++ b/HDL_ON/DAL/ThirdPartySdk/ESOnVideo.cs
@@ -213,8 +213,14 @@
                 //2.璁剧疆钀ょ煶瀛愯处鍙风殑AccessToken鍒癝DK
                 EZSDK.IOS.EZSDK.SharedInstance().SetEZAccessToken(mESVideoInfo.Lc_AccessToken);
                 //3.鎵撳紑瑙嗛鎾斁椤甸潰
-                EZSDK.IOS.EZSDK.SharedInstance().PlayWithDeviceSerial(mESVideoInfo.DeviceSerial);
+                string currentTimeStr = Utlis.GetTimestamp();   // 褰撳墠鏃堕棿
 
+                if (string.IsNullOrEmpty(mESVideoInfo.currentTime) && string.IsNullOrEmpty(currentTimeStr) && (long.Parse(currentTimeStr) - long.Parse(mESVideoInfo.currentTime)) > 30000) {    // 瓒呮椂30s
+                    EZSDK.IOS.EZSDK.SharedInstance().PlayWithDeviceSerial(mESVideoInfo.DeviceSerial);
+                }
+                else {
+                    EZSDK.IOS.EZSDK.SharedInstance().PlayWithDeviceSerial(mESVideoInfo.DeviceSerial, mESVideoInfo.msgId);
+                }
             }
             else if (interphoneType == InterphoneType.HDL.ToString())
             {
@@ -816,6 +822,14 @@
         /// 璁惧搴忓垪鍙�
         /// </summary>
         public string DeviceSerial = string.Empty;
+        /// <summary>
+        /// 鏈嶅姟鍣ㄦ帹閫佹椂闂�
+        /// </summary>
+        public string currentTime = string.Empty;
+        /// <summary>
+        /// 娑堟伅id
+        /// </summary>
+        public string msgId = string.Empty;
         //========================HDL SIP==========================
         /// <summary>
         /// 璁惧sip璐﹀彿 interphoneType鏄疕DL鏃舵墠浼氭湁鍊�

--
Gitblit v1.8.0