From 9e9f864d0f630cacd36107e3960025f454c6881d Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 24 八月 2021 14:44:33 +0800
Subject: [PATCH] 2021-08-24 1.优化更新

---
 HDL_ON/Common/ApiUtlis.cs |   25 +++++++++++++++----------
 1 files changed, 15 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/Common/ApiUtlis.cs b/HDL_ON/Common/ApiUtlis.cs
index e14a122..5736483 100644
--- a/HDL_ON/Common/ApiUtlis.cs
+++ b/HDL_ON/Common/ApiUtlis.cs
@@ -281,17 +281,22 @@
                         }
                     }
                     //======================鑾峰彇Sip璐﹀彿骞朵笖鍒濆鍖朣DK鍙瀵硅璁惧鍒楄〃====================
-                    if (isInterphoneType_HDL)
-                    {
-                        //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
-                        HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id);
+                    //濡傛灉妫�娴嬬嚎绋嬫病鍚姩锛屾墠缁х画涓嬮潰鎿嶄綔 鍥犱负App鍒氬惎鍔ㄩ┈涓婃敹鍒版帹閫佷簡锛岀劧鍚庢墠鎵ц鍒拌繖閲�
+                    if (HDLLinphone.Current.CheckIncomingCallThreadIsNull()) {
+                        //褰撳墠浣忓畢鏄疕DL鍙瀵硅绫诲瀷鐨勮澶�
+                        if (isInterphoneType_HDL)
+                        {
+                            //HDLLinphone鍙瀵硅,鑾峰彇Sip璐﹀彿骞跺垵濮嬪寲SDK
+                            HDLLinphone.Current.GetHDLSipInfoAndInitSDK(DB_ResidenceData.Instance.CurrentRegion.id);
+                        }
+                        else
+                        {
+                            Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰曟墍鏈夎处鍙�");
+                            //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅
+                            HDLLinphone.Current.LogoutAllAccount();
+                        }
                     }
-                    else
-                    {
-                        Utlis.WriteLine("褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅,閫�鍑虹櫥褰�");
-                        //褰撳墠浣忓畢涓嶆敮鎸丠DL鍙瀵硅
-                        HDLLinphone.Current.LogoutAllAccount();
-                    }
+                        
                 }
                 catch (Exception ex)
                 {

--
Gitblit v1.8.0