From c8c33200e43f05136eca9fc8ff4942f8def31cc6 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 18 八月 2021 10:45:40 +0800
Subject: [PATCH] 2021-08-18 1.完善Android对接LinphoneSDK 2.完善SIP相关接口对接

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/InputPushText.cs |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/InputPushText.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/InputPushText.cs
index 0d29d55..b05e5c7 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/InputPushText.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/InputPushText.cs
@@ -155,8 +155,20 @@
             saveView.btnClick.MouseUpEventHandler += (e, sen) =>
             {
                 Logic.currlogic.noticeConfig.noticeContent = textBox.Text.Trim();
-                Logic.currlogic.pushConfigs.Clear();//娓呯┖鏃ф暟鎹垪琛�
-                Logic.currlogic.pushConfigs.Add(new PushConfigs { pushTarget = selectedAccountList });
+                if (selectedAccountList.Count > 0)
+                {
+                    Logic.currlogic.pushConfigs.Clear();//娓呯┖鏃ф暟鎹垪琛�
+                    Logic.currlogic.pushConfigs.Add(new PushConfigs { pushTarget = selectedAccountList });
+                }
+                //璐﹀彿鍒楄〃涓虹┖榛樿鎺ㄩ�佸綋鍓嶈处鍙�
+                if (Logic.currlogic.pushConfigs.Count == 0)
+                {
+                    //鍒濆鍖栧璞�
+                    PushConfigs pushConfigs = new PushConfigs();
+                    //榛樿娣诲姞鎺ㄩ�佸綋鍓嶈处鍙�
+                    pushConfigs.pushTarget.Add(UserInfo.Current.ID);
+                    Logic.currlogic.pushConfigs.Add(pushConfigs);
+                }
                 this.RemoveFromParent();
             };
             #endregion

--
Gitblit v1.8.0