wxr
2022-04-01 764185112d44c387e16f0483d8da898f8d998944
HDL_ON/Common/HDLCommon.cs
@@ -330,16 +330,31 @@
                        }
                        else if (interphoneTypeEnum == InterphoneType.HDL.ToString())
                        {
                            //HDL Linphone 狄耐克
                            eSVideoInfo.HomeId = jpushMessageInfo.HomeId;
                            eSVideoInfo.callId = json["callId"].ToString();
                            eSVideoInfo.Lc_DeviceId = json["deviceId"].ToString();
                            eSVideoInfo.DeviceName = json["deviceName"].ToString();
                            eSVideoInfo.deviceSipAccount = json["deviceSipAccount"].ToString();
                            //ShowAlert("狄耐克门口机呼叫");
                            //打开呼叫页面
                            HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo);
                            return;
                            if (json.ContainsKey("spk"))
                            {
                                if (json["spk"].ToString() == "door.gate")
                                {
                                    new PublicAssmebly().TipLinphoneCall("\""+ eSVideoInfo.DeviceName + "\"呼叫", eSVideoInfo);
                                    //HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo,true);
                                    return;
                                }
                                else
                                {
                                    //HDL Linphone 狄耐克
                                    //ShowAlert("狄耐克门口机呼叫");
                                    //打开呼叫页面
                                    HDLLinphone.Current.ShowESVideoIntercom(eSVideoInfo,false);
                                    return;
                                }
                            }
                        }
                        //3.打开呼叫页面
@@ -402,13 +417,14 @@
            //账号在别处登陆,被踢下线 跳转到登录页面
            new Alert(Language.StringByID(StringId.Tip), Language.StringByID(StringId.LoggedOnOtherDevices), Language.StringByID(StringId.Close)).Show();
            Logout();
            Logout(false);
        }
        /// <summary>
        /// 退出登录操作
        /// signOutPush 是否删除推送token
        /// </summary>
        public void Logout()
        public void Logout(bool signOutPush = true)
        {
            //加载Loading效果
            var waitPage = new Loading();
@@ -419,8 +435,11 @@
            {
                try
                {
                    //2.注销推送
                    new HttpServerRequest().SignOutPush();
                    if (signOutPush)
                    {
                        //2.注销推送
                        new HttpServerRequest().SignOutPush();
                    }
                    //3.跳转登录页面
                    UserInfo.Current.LastTime = DateTime.MinValue;
                    UserInfo.Current.SaveUserInfo();