From 1170a384130c143d5930efe108afe82c5da64f24 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 19 十月 2021 15:08:35 +0800
Subject: [PATCH] 场景编辑新风闪退修复

---
 HDL_ON/Entity/Function/Scene.cs                    |    7 ++
 HDL-ON_Android/Properties/AndroidManifest.xml      |    2 
 HDL-ON_iOS/Info.plist                              |    4 
 HDL_ON/DAL/Server/HttpUtil.cs                      |    4 
 HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs |    2 
 HDL-ON_iOS/HDL-ON_iOS.csproj                       |    2 
 HDL_ON/Entity/Function/SecurityAlarm.cs            |   75 +------------------------
 .vs/HDL_APP_Project/xs/UserPrefs.xml               |   43 ++++---------
 HDL_ON/UI/MainPage.cs                              |    2 
 HDL_ON/UI/UI1-Login/LoginPage.cs                   |    4 +
 10 files changed, 35 insertions(+), 110 deletions(-)

diff --git a/.vs/HDL_APP_Project/xs/UserPrefs.xml b/.vs/HDL_APP_Project/xs/UserPrefs.xml
index b8b089e..9e98fbd 100644
--- a/.vs/HDL_APP_Project/xs/UserPrefs.xml
+++ b/.vs/HDL_APP_Project/xs/UserPrefs.xml
@@ -1,42 +1,28 @@
-锘�<Properties StartupConfiguration="{09712674-2A38-407B-B1E2-560B2C352F9A}|Default">
-  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.220222E9-B9CA-4834-9318-2BC22465F050" />
-  <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs">
+锘�<Properties StartupConfiguration="{D998E133-F0DD-4760-BE3C-461632F54DA4}|Default">
+  <MonoDevelop.Ide.ItemProperties.HDL-ON__iOS PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneDeviceTarget.00008020-000404163432002E" />
+  <MonoDevelop.Ide.Workbench ActiveDocument="HDL_ON/DAL/Server/HttpUtil.cs">
     <Files>
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/1ContorlPage/AirFreshControlPage.cs" Line="741" Column="24" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddAlarmDeploymentPage.cs" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/ArmCenter/AddInputPage.cs" />
-      <File FileName="HDL_ON/UI/UI1-Login/LoginPage.cs" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Electrical/AirSwitchPage.cs" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/Energy/EnergyMainPage.cs" Line="545" Column="15" />
-      <File FileName="HDL_ON/UI/UI2/2-Classification/FunctionControlZone.cs" />
-      <File FileName="HDL_ON/UI/UI2/2-Classification/FunctionControlZoneBLL.cs" />
-      <File FileName="HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/A_EnvironmentalDataCenter.cs" />
-      <File FileName="HDL_ON/Entity/Function/Function.cs" />
-      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Automation/ConditionDeviceFunList.cs" />
-      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Automation/InpOrOutLogicMethod.cs" />
-      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs" />
+      <File FileName="HDL_ON/UI/UI1-Login/LoginPage.cs" Line="253" Column="41" />
+      <File FileName="HDL-ON_iOS/Info.plist" />
+      <File FileName="HDL_ON/Entity/Function/Scene.cs" />
+      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SetSceneFunctionInfoPage.cs" />
+      <File FileName="HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs" />
       <File FileName="HDL_ON/UI/MainPage.cs" />
-      <File FileName="HDL_ON/DAL/DriverLayer/A_Protocol_Common.cs" Line="123" Column="1" />
+      <File FileName="HDL_ON/UI/UI2/FuntionControlView/ArmCenter/ArmCenterPage.cs" />
+      <File FileName="HDL_ON/Entity/Function/SecurityAlarm.cs" Line="10" Column="9" />
+      <File FileName="HDL_ON/DAL/Server/HttpUtil.cs" Line="21" Column="61" />
     </Files>
     <Pads>
       <Pad Id="ProjectPad">
         <State name="__root__">
           <Node name="HDL_APP_Project" expanded="True">
-            <Node name="HDL_ON" expanded="True">
+            <Node name="HDL_ON" expanded="True" selected="True">
               <Node name="DAL" expanded="True">
-                <Node name="DriverLayer" expanded="True">
-                  <Node name="A_Protocol_Common.cs" selected="True" />
-                </Node>
                 <Node name="Server" expanded="True" />
               </Node>
             </Node>
+            <Node name="HDL-ON_iOS" expanded="True" />
           </Node>
-        </State>
-      </Pad>
-      <Pad Id="MonoDevelop.Debugger.WatchPad">
-        <State>
-          <Value>HdlLinkGatewayLogic.Current.ListLinkGateway</Value>
         </State>
       </Pad>
     </Pads>
@@ -47,7 +33,7 @@
     <String>Shared.Droid.TouchID/Shared.Droid.TouchID.csproj</String>
     <String>Shared.IOS/Shared.IOS.csproj</String>
   </DisabledProjects>
-  <MonoDevelop.Ide.Workspace ActiveConfiguration="Release" />
+  <MonoDevelop.Ide.Workspace ActiveConfiguration="Release|iPhone" />
   <MonoDevelop.Ide.ItemProperties.HDL-ON__Android PreferredExecutionTarget="Android.SelectDevice" />
   <MonoDevelop.Ide.DebuggingService.Breakpoints>
     <BreakpointStore>
@@ -57,7 +43,6 @@
       <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferUserConfirmPage.cs" relfile="HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/Transfer/TransferUserConfirmPage.cs" line="106" column="1" />
       <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs" relfile="HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs" line="481" column="1" />
       <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs" relfile="HDL_ON/UI/UI2/4-PersonalCenter/FaceManagement/FacePassagePage.cs" line="541" column="1" />
-      <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/Entity/Function/Scene.cs" relfile="HDL_ON/Entity/Function/Scene.cs" line="343" column="1" />
       <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs" relfile="HDL_ON/UI/UI2/FuntionControlView/EnvironmentalScience/EnvironmentalSensorPage.cs" line="865" column="1" />
       <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/DAL/Server/HttpServerRequest.cs" relfile="HDL_ON/DAL/Server/HttpServerRequest.cs" line="2691" column="1" />
       <Breakpoint file="/Users/kaede/Desktop/HDL_APP_Project/HDL_ON/DAL/Server/HttpServerRequest.cs" relfile="HDL_ON/DAL/Server/HttpServerRequest.cs" line="2687" column="1" />
diff --git a/HDL-ON_Android/Properties/AndroidManifest.xml b/HDL-ON_Android/Properties/AndroidManifest.xml
index 96ae96f..0ca8872 100644
--- a/HDL-ON_Android/Properties/AndroidManifest.xml
+++ b/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:versionCode="202110171" android:versionName="1.2.202110171" package="com.hdl.onpro">
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="202110191" android:versionName="1.2.202110191" package="com.hdl.onpro">
 	<uses-sdk android:minSdkVersion="23" android:targetSdkVersion="28" />
 	<!-- 涔愭鍙瀵硅闇�瑕佺殑鏉冮檺 -->
 	<!--<uses-permission android:name="android.permission.INTERNET" />-->
diff --git a/HDL-ON_iOS/HDL-ON_iOS.csproj b/HDL-ON_iOS/HDL-ON_iOS.csproj
index 9f839ae..0877629 100644
--- a/HDL-ON_iOS/HDL-ON_iOS.csproj
+++ b/HDL-ON_iOS/HDL-ON_iOS.csproj
@@ -35,7 +35,7 @@
         <OutputPath>bin\iPhoneSimulator\Release</OutputPath>
         <ErrorReport>prompt</ErrorReport>
         <WarningLevel>4</WarningLevel>
-        <MtouchLink>None</MtouchLink>
+        <MtouchLink>SdkOnly</MtouchLink>
         <MtouchArch>x86_64</MtouchArch>
 <CodesignKey>iPhone Developer</CodesignKey>
     </PropertyGroup>
diff --git a/HDL-ON_iOS/Info.plist b/HDL-ON_iOS/Info.plist
index 2922c21..e9b73ce 100644
--- a/HDL-ON_iOS/Info.plist
+++ b/HDL-ON_iOS/Info.plist
@@ -100,9 +100,9 @@
 	<key>UIStatusBarStyle</key>
 	<string>UIStatusBarStyleLightContent</string>
 	<key>CFBundleShortVersionString</key>
-	<string>1.2.202110131</string>
+	<string>1.2.202110191</string>
 	<key>CFBundleVersion</key>
-	<string>1.2.10131</string>
+	<string>1.2.10191</string>
 	<key>NSLocationWhenInUseUsageDescription</key>
 	<string>Use geographic location to provide services such as weather</string>
 	<key>NSAppleMusicUsageDescription</key>
diff --git a/HDL_ON/DAL/Server/HttpUtil.cs b/HDL_ON/DAL/Server/HttpUtil.cs
index d2292ee..cf4a06a 100644
--- a/HDL_ON/DAL/Server/HttpUtil.cs
+++ b/HDL_ON/DAL/Server/HttpUtil.cs
@@ -17,8 +17,8 @@
         /// 鍥哄畾鍩熷悕,姝e紡鐜
         /// 鍏叡鍩熷悕灏辫繎瑙f瀽
         /// </summary>
-        public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com";
-        //public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm
+        //public const string GlobalRequestHttpsHost = "https://nearest.hdlcontrol.com";
+        public const string GlobalRequestHttpsHost = "https://test-gz.hdlcontrol.com";//mmmm
         /// <summary>
         /// RegionMark
         /// </summary>
diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs
index 48481ec..693db8d 100644
--- a/HDL_ON/Entity/Function/Scene.cs
+++ b/HDL_ON/Entity/Function/Scene.cs
@@ -338,6 +338,13 @@
         /// </summary>
         public string UpdateScene()
         {
+            if(MainPage.NoLoginMode)
+            {
+                var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this));
+                Common.FileUtlis.Files.WriteFileByBytes(savePath, ssd);
+
+                return "0";
+            }
             var pm = new HttpServerRequest();
             var revPack = pm.EditScene(this);
             if (revPack.Code == StateCode.SUCCESS)
diff --git a/HDL_ON/Entity/Function/SecurityAlarm.cs b/HDL_ON/Entity/Function/SecurityAlarm.cs
index 68cc8d8..6260cba 100644
--- a/HDL_ON/Entity/Function/SecurityAlarm.cs
+++ b/HDL_ON/Entity/Function/SecurityAlarm.cs
@@ -6,78 +6,9 @@
 
 namespace HDL_ON.Entity
 {
-
-    public class SecurityCenter111111
-    {
-        static SecurityCenter111111 _securityCenter;
-
-        public static SecurityCenter111111 Ins
-        {
-            get
-            {
-                if (_securityCenter == null)
-                {
-                    _securityCenter = new SecurityCenter111111();
-                }
-                return _securityCenter;
-            }
-        }
-
-        /// <summary>
-        /// 甯冮槻涓�
-        /// </summary>
-        public bool InDefense
-        {
-            get
-            {
-                lock (FunctionList.List.securities)
-                {
-                    var temp = FunctionList.List.securities.Find((obj) => obj.status == "enable");
-                    return temp == null ? false : true;
-                }
-            }
-        }
-
-        /// <summary>
-        /// 鎶ヨ涓�
-        /// </summary>
-        public bool InAlarm
-        {
-            get
-            {
-                lock (FunctionList.List.securities)
-                {
-                    var temp = FunctionList.List.securities.Find((obj) => obj.alarm == true);
-                    return temp == null ? false : true;
-                }
-            }
-        }
-
-        SecurityAlarm _inDefenseMode;
-        /// <summary>
-        /// 褰撳墠甯冮槻妯″紡
-        /// </summary>
-        public SecurityAlarm InDefenseMode
-        {
-            get
-            {
-                if (_inDefenseMode == null)
-                {
-                    lock (FunctionList.List.securities)
-                    {
-                        var temp = FunctionList.List.securities.Find((obj) => obj.status == "enable");
-                        return temp;  
-                    }
-                }
-                return _inDefenseMode;
-            }
-        }
-
-
-    }
-
-
-
+    /// <summary>
+    /// 
+    /// </summary>
     public class SecurityAlarm
     {
         public SecurityAlarm()
diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index d9d7471..7d6b90b 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -25,7 +25,7 @@
         /// <summary>
         /// 鐗堟湰鍙�
         /// </summary>
-        public static string VersionString = "1.2.1014";
+        public static string VersionString = "1.2.1019";
         ///// <summary>
         ///// 瀹㈡埛绔被鍨�
         ///// </summary>
diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs
index 527045c..9f6c480 100644
--- a/HDL_ON/UI/UI1-Login/LoginPage.cs
+++ b/HDL_ON/UI/UI1-Login/LoginPage.cs
@@ -235,9 +235,11 @@
                     //etAccount.Text = "18824864143";//"464027401@qq.com"; //"2791308028@qq.com";//13697499568
                     //etAccount.Text = "18402017839";//wjc
                     //etAccount.Text = "13430286286";//cwc
+                    etAccount.Text = "13709260805";
+                    etAccount.Text = "support5@hdlchina.com.cn";
                 }
                 b = !b;
-                etPassword.Text = "123456";
+                etPassword.Text = "A85521566";
                 if(etAccount.Text == "fslcjm5@163.com")
                 {
                     etPassword.Text = "a123456";
diff --git a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
index f05323d..62e3077 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Scene/SceneAddPage.cs
@@ -527,7 +527,7 @@
             }
             if (fanState != null)
             {
-                sceneFunctionInfo += tempState.GetValueText();
+                sceneFunctionInfo += fanState.GetValueText();
             }
             var briState = sceneFunction.status.Find((obj) => obj.key == FunctionAttributeKey.Brightness);
             if (briState != null)

--
Gitblit v1.8.0