wxr
2024-09-14 c00da77d00a479fa5d022346a6d9075f90a5c087
退出登录时间调整,新风,音乐

新风:增加远程总开总管
音乐:修复控制界面设置按钮异常跳转
12个文件已修改
118 ■■■■ 已修改文件
HDL-ON_Android/Properties/AndroidManifest.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL-ON_iOS/Info.plist 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/Common/ApiUtlis.cs 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/Common/HDLCommon.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/DAL/DriverLayer/Control.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/DAL/Server/HttpUtil.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/MainPage.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI1-Login/LoginPage.cs 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Music/View/TopView.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
HDL-ON_Android/Properties/AndroidManifest.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.6.0" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202409111">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.6.0" package="com.hdl.onpro" xmlns:tools="http://schemas.android.com/tools" android:versionCode="202409121">
    <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <!--程序可以读取设备外部存储空间(内置SDcard和外置SDCard)的文件,我的文件等-->
HDL-ON_iOS/Info.plist
@@ -11,7 +11,7 @@
    <key>CFBundleName</key>
    <string>On Pro</string>
    <key>CFBundleShortVersionString</key>
    <string>2.6.0</string>
    <string>2.5.1</string>
    <key>CFBundleURLTypes</key>
    <array>
        <dict>
@@ -36,7 +36,7 @@
        </dict>
    </array>
    <key>CFBundleVersion</key>
    <string>2.6.0</string>
    <string>2.5.1</string>
    <key>LSApplicationQueriesSchemes</key>
    <array>
        <string>weixinULAPI</string>
HDL_ON/Common/ApiUtlis.cs
@@ -73,6 +73,11 @@
        /// </summary>
        public bool DownloadDataComplete = false;
        /// <summary>
        /// token是否有效
        /// </summary>
        public bool tokenInvalid = false;
        public bool hadInternet = true;
        /// <summary>
        /// 下载数据
@@ -127,7 +132,7 @@
                        }
                        catch (Exception ex)
                        {
                            MainPage.Log($"{this.GetType()}:加载缓存房间数据异常:{ex.Message}");
                            MainPage.Log("Error",$"{this.GetType()}:加载缓存房间数据异常:{ex.StackTrace}");
                        }
                        try
@@ -141,10 +146,8 @@
                        }
                        catch (Exception ex)
                        {
                            MainPage.Log($"{this.GetType()}:加载缓存设备数据异常:{ex.Message}");
                            MainPage.Log("Error", $"{this.GetType()}:加载缓存设备数据异常:{ex.StackTrace}");
                        }
                        return;
                    }
                    else
@@ -154,7 +157,7 @@
                }
                catch (Exception ex)
                {
                    MainPage.Log($"Error:下载数据1:{ex.Message}");
                    MainPage.Log("Error", $"下载数据1:{ex.StackTrace}");
                    DownloadDataComplete = true;
                    return;
                }
@@ -175,6 +178,7 @@
                MainPage.Log($"进入读取云端数据线程");
                //===================刷新Token=======================
                code = Ins.HttpRequest.RefreshToken();
                if (code != StateCode.SUCCESS)
                {
                    if (waitPage != null)
@@ -277,9 +281,10 @@
                                {
                                    var ssd = System.Text.Encoding.UTF8.GetBytes(JsonConvert.SerializeObject(revData.list));
                                    FileUtlis.Files.WriteFileByBytes("SpatialInfoData", ssd);
                                }catch(Exception ex)
                                }
                                catch (Exception ex)
                                {
                                    MainPage.Log($"{this.GetType()}:保存房间信息异常:{ex.Message}");
                                    MainPage.Log("Error", $"{this.GetType()}:保存房间信息异常:{ex.StackTrace}");
                                }
                            })
                            { IsBackground = true }.Start();
@@ -404,7 +409,7 @@
                                                --i;
                                            }catch(Exception ex)
                                            {
                                                MainPage.Log($"ios 全视通异常 : {ex.Message}");
                                                MainPage.Log("Error", $"ios 全视通异常 : {ex.StackTrace}");
                                            }
#else
@@ -480,16 +485,16 @@
                            {
                                MainPage.Log($"读取云端设备数据失败:Code:{deviceResult.Code};  Msg:{deviceResult.message}");
                            }
                        }catch (Exception ex)
                        }
                        catch (Exception ex)
                        {
                            MainPage.Log($"============设备============{ex.Message}");
                            MainPage.Log("Error", $"============设备============{ex.StackTrace}");
                        }
                        finally
                        {
                            complateDevice = true;
                            MainPage.Log($"============设备============完成" + FunctionList.List.Functions.Count);
                        }
                        //======================群控====================
                        if (DB_ResidenceData.Instance.HomeGateway.isSupportGroupControl)
@@ -546,7 +551,7 @@
                                    }
                                    catch (Exception ex)
                                    {
                                        MainPage.Log($"读取组控列表失败:{ex.Message}");
                                        MainPage.Log("Error", $"读取组控列表失败:{ex.StackTrace}");
                                    }
                                }
                                else
@@ -608,9 +613,10 @@
                            {
                                MainPage.Log($"读取云端场景数据失败:Code:{pack.Code}; Msg:{pack.message}");
                            }
                        }catch(Exception ex)
                        }
                        catch (Exception ex)
                        {
                            MainPage.Log($"===场景==={ex.Message}");
                            MainPage.Log("Error", $"===场景==={ex.StackTrace}");
                        }
                        finally
                        {
@@ -631,7 +637,7 @@
                }
                catch (Exception ex)
                {
                    MainPage.Log($"数据初始化失败:{ex.Message}");
                    MainPage.Log("Error", $"数据初始化失败:{ex.StackTrace}");
                }
                finally
                {
@@ -650,9 +656,10 @@
                    try
                    {
                        FunctionList.List.Read3tyFunctionStatus();
                    }catch(Exception ex)
                    }
                    catch (Exception ex)
                    {
                        MainPage.Log("读取第三方设备状态失败:"+ex.Message);
                        MainPage.Log("Error", "读取第三方设备状态失败:" + ex.StackTrace);
                    }
                }
            });
@@ -688,13 +695,18 @@
                {
                    if (DB_ResidenceData.Instance.CurrentRegion != null)
                    {
                        try
                        {
#region 读取本地数据
                        //搜索网关
                        DriverLayer.Control.Ins.SearchLoaclGateway();
                        //重新连接mqtt
                        DAL.Mqtt.MqttClient.DisConnectRemote("刷新数据,重连mqtt",false);
#endregion
                        }
                        catch (Exception ex){
                            MainPage.Log("Error", $"读取本地数据异常:{ex.StackTrace}");
                        }
                    }
                }
            })
@@ -775,3 +787,4 @@
    }
}
HDL_ON/Common/HDLCommon.cs
@@ -565,6 +565,10 @@
        /// </summary>
        public void Logout()
        {
            try
            {
                Application.RunOnMainThread(() =>
                {
            //加载Loading效果
            var waitPage = new Loading();
            MainPage.BaseView.AddChidren(waitPage);
@@ -612,6 +616,12 @@
                    });
                }
            }).Start();
                });
            }
            catch (Exception ex)
            {
                MainPage.Log("Error", $"退出登录异常:{ex.StackTrace}");
            }
        }
        /// <summary>
HDL_ON/DAL/DriverLayer/Control.cs
@@ -444,7 +444,7 @@
            //如果是控制调光的开时,亮度值不能为0
            if (commandDictionary.Count > 2)
            if (commandDictionary.Count >= 2)
            {
                if (commandDictionary.ContainsKey(FunctionAttributeKey.OnOff) && commandDictionary.ContainsKey(FunctionAttributeKey.Brightness))
                {
HDL_ON/DAL/Server/HttpUtil.cs
@@ -339,7 +339,7 @@
#endif
                    return true;
                }
                else if (revertObj.Code == StateCode.PasswrodError)
                else //if (revertObj.Code == StateCode.PasswrodError)
                {
                    UserInfo.Current.LastTime = DateTime.MinValue;
                }
HDL_ON/DAL/ThirdPartySdk/HDLLinphone.cs
@@ -127,7 +127,7 @@
            //登录sip服务器
#if __IOS__
            Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().Login(mHDLSipInfo.sipAccount, mHDLSipInfo.sipPasswd, mHDLSipInfo.realm,DB_ResidenceData.Instance.linphoneConnectType.ToString());
            Shared.IOS.HDLLinphoneSDK.HDLLinPhoneSDK.Instance().Login(mHDLSipInfo.sipAccount, mHDLSipInfo.sipPasswd, mHDLSipInfo.realm,"UDP");
#else
            if (mInterphoneType == InterphoneType.FREEVIEW.ToString())
            {
HDL_ON/UI/MainPage.cs
@@ -26,7 +26,7 @@
        /// <summary>
        /// 版本号
        /// </summary>
        public static string VersionString = "2.6.0";
        public static string VersionString = "2.5.1";
        ///// <summary>
        ///// 客户端类型
        ///// </summary>
HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -308,7 +308,6 @@
                    //etAccount.Text = "455740454@qq.com";
                    //etAccount.Text = "13288623489";//罗晓东
                    //etAccount.Text = "18688414428";//天河3楼
                    //etAccount.Text = "pjh@hdlchina.com.cn";
                    //etAccount.Text = "12345678904";//2.0 测试  萤石
                    //etAccount.Text = "1272061968@qq.com";//万科城市之光E区8栋206
                    //etAccount.Text = "marketing@australindo.co.id";
@@ -317,10 +316,11 @@
                    etAccount.Text = "13336018868";
                    etAccount.Text = "649362315@qq.com";//蔡淑娴
                    //etAccount.Text = "18402017839";
                    //etAccount.Text = "18620993214";
                    //etAccount.Text = "13414984501";//吴晓聪
                    etAccount.Text = "13682244600";
                    etAccount.Text = "pjh@hdlchina.com.cn";
                    etAccount.Text = "13580507523";
                    etAccount.Text = "18475593023";
                    etAccount.Text = "15313316909";
                }
                else
                {
@@ -339,9 +339,9 @@
                }
                b = !b;
                etPassword.Text = "123456";
                if (etAccount.Text == "18620993214")
                if (etAccount.Text == "13682244600")
                {
                    etPassword.Text = "hdl1985.";
                    etPassword.Text = "asd123456789123";
                }
                else if (etAccount.Text == "18475593023")
                {
HDL_ON/UI/UI2/FuntionControlView/Music/MusicMain.cs
@@ -150,7 +150,14 @@
                    Application.RunOnMainThread(() =>
                    {
                        try
                        {
                        MusicListView(a31player);
                        }
                        catch (Exception ex)
                        {
                            MainPage.Log("Error", $"MusicListView 方法异常:{ex.StackTrace}");
                        }
                    });
                }
                ///进来读一次音乐播放器状态
HDL_ON/UI/UI2/FuntionControlView/Music/View/TopView.cs
@@ -93,6 +93,23 @@
            fLayout.AddChidren(clickBackBtn);
            fLayout.AddChidren(clickSetBtn);
            return fLayout;
        }
        /// <summary>
        /// 最上面的那块方法
        /// </summary>
        /// <returns></returns>
        public FrameLayout TopFLayoutView2()
        {
            fLayout.AddChidren(topNameBtn);
            fLayout.AddChidren(backBtn);
            lineBtn.Y = fLayout.Height - 1;
            fLayout.AddChidren(lineBtn);
            fLayout.AddChidren(setBtn);
            fLayout.AddChidren(clickBackBtn);
            fLayout.AddChidren(clickSetBtn);
            var btnSetting = new Button()
            {
HDL_ON/UI/UI2/FuntionControlView/Video/VideoMainView.cs
@@ -25,6 +25,14 @@
            this.BackgroundColor = MusicColor.ViewColor;
            var topView = new TopView();
            this.AddChidren(topView.TopFLayoutView());
            //if (xiMoVideoList.Count > 0)
            //{
            //    this.AddChidren(topView.TopFLayoutView());
            //}
            //else
            //{
            //    this.AddChidren(topView.TopFLayoutView2());
            //}
            topView.topNameBtn.TextID = StringId.keshiduijiang;
@@ -127,8 +135,6 @@
        /// <param name="video">可视对讲对象</param>
        void View1(FrameLayout view1, List<Video> videoList)
        {
            #region 布局界面
            var bjFl = new FrameLayout
            {
@@ -191,7 +197,6 @@
                Width = Application.GetRealWidth(160),
                Height = Application.GetRealWidth(160),
                UnSelectedImagePath = "VideoIcon/keshiduijiang.png",
            };
            bjFl.AddChidren(intercomBtnIcon);