From d8545fbd1b36a6766c57c987e5d89862b470fed9 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期四, 03 九月 2020 09:46:29 +0800
Subject: [PATCH] 2020-09-03 1.修改风扇默认为关状态。2.Alexa添加设备时,去掉空调和通用开关选择添加支持。 3.场景增加通用开关添加和发送控制支持,Alexa 的场景同样增加通用开关的支持。

---
 Crabtree/SmartHome/UI/SimpleControl/Phone/DoorLock/FingerprintAndProximityScene.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/DoorLock/FingerprintAndProximityScene.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/DoorLock/FingerprintAndProximityScene.cs
index fe524ce..d083ba1 100644
--- a/Crabtree/SmartHome/UI/SimpleControl/Phone/DoorLock/FingerprintAndProximityScene.cs
+++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/DoorLock/FingerprintAndProximityScene.cs
@@ -105,13 +105,13 @@
             var editbox = new EditText () {
                 Height = Application.GetRealHeight (180),
                 Width = Application.GetRealWidth (520),
+                PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor,
                 PlaceholderText = Language.StringByID (R.MyInternationalizationString.EditPushContent),
                 TextAlignment = TextAlignment.Center,
                 Radius = (uint)Application.GetRealHeight (10),
                 TextColor = SkinStyle.Current.TextColor1,
                 BackgroundColor = SkinStyle.Current.LineColor2,
                 TextSize = 15,
-                PlaceholderTextColor = SkinStyle.Current.PlaceholderTextColor,
             };
             editMessageView.AddChidren (editbox);
 
@@ -725,7 +725,7 @@
                 try {
                 var recevieResult = requestWeb (mess,"https://developer.hdlcontrol.com/api/AddPushMessage");
                      var obj = Newtonsoft.Json.JsonConvert.DeserializeObject<PushMessageResult> (recevieResult);
-                     if (obj.StateCode == "SUCCESS") {
+                     if (obj.StateCode.ToUpper() == "SUCCESS") {
                          Application.RunOnMainThread (() => {
                              new Tip () { MaxWidth = 150, Text = Language.StringByID (R.MyInternationalizationString.SendNotificationsSuccessfully), Direction = AMPopTipDirection.Down, CloseTime = 2 }.Show (btn);
                          });
@@ -797,7 +797,7 @@
                 try {
                      var recevieResult = requestWeb (mess, "https://developer.hdlcontrol.com/api/GetOnePushMsg");
                      var obj = Newtonsoft.Json.JsonConvert.DeserializeObject<PushMessageResult> (recevieResult);
-                     if (obj.StateCode == "SUCCESS") {
+                     if (obj.StateCode.ToUpper() == "SUCCESS") {
                          var msgEntity = Newtonsoft.Json.JsonConvert.DeserializeObject<List<MessageInfoRes>> (obj.ResponseData.ToString ());
                          
                          foreach (var msg in msgEntity) {

--
Gitblit v1.8.0