From a16dbea60b9fd0550dcdefd34c94ff6711af2cbc Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 25 十一月 2022 09:13:29 +0800
Subject: [PATCH] 功能完成备份

---
 HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs b/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs
index f3e5160..45144a9 100644
--- a/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs
+++ b/HDL_ON/UI/UI0-Public/PublicAssmeblyBLL.cs
@@ -1,5 +1,6 @@
 锘縰sing System;
 using System.Threading;
+using HDL_ON.DAL.Server;
 using HDL_ON.Entity;
 using Shared;
 
@@ -231,6 +232,40 @@
                         var doorLockPage = new DoorLockPage();
                         doorLockPage.AddForm(function, btnCollectionIcon, btnName, btnFromFloor);
                         break;
+                    case SPK.IpCam_Imou:
+                        new System.Threading.Thread(() =>
+                        {
+                            var http = new HttpServerRequest();
+                            var pack = http.GetLcSubAccountToken();
+                            if (pack.Code == StateCode.SUCCESS)
+                            {
+                                if (pack.Data == null || string.IsNullOrEmpty(pack.Data.ToString()))
+                                {
+                                    Application.RunOnMainThread(() =>
+                                    {
+                                        new PublicAssmebly().TipMsg("", $"鑾峰彇涔愭鏁版嵁澶辫触");
+                                    });
+                                }
+                                Com.Utils.HdlToLcUtils.Instance.InitData(Shared.Application.Activity, "HDL-HOME-APP-TEST", "WeJ8TY88vbakCcnvH8G1tDUqzLWY8yss", OnAppConfig.Instance.RequestHttpsHost);
+                                Com.Utils.HdlToLcUtils.Instance.HomeId = DB_ResidenceData.Instance.CurrentRegion.id;
+                                Com.Utils.HdlToLcUtils.Instance.Token = UserInfo.Current.AccessToken;
+                                Com.Utils.HdlToLcUtils.Instance.SubAccessToken = pack.Data.ToString();
+                                Application.RunOnMainThread(() =>
+                                {
+                                    //Com.Utils.HdlToLcUtils.Instance.OpenActivity();
+                                    Com.Utils.HdlToLcUtils.Instance.Play(function.extDevId,function.name);
+                                });
+                            }
+                            else
+                            {
+                                Application.RunOnMainThread(() =>
+                                {
+                                    new PublicAssmebly().TipMsg("", $"鑾峰彇涔愭鏁版嵁澶辫触({pack.Code})");
+                                });
+                            }
+                        })
+                        { IsBackground = true }.Start();
+                        break;
                 }
             };
             return eventHandler;

--
Gitblit v1.8.0