xm
2020-12-14 d6fb0646531172f23648441c224cdcccd721b894
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Logic/HdlDeviceAttributeLogic.cs
@@ -323,9 +323,8 @@
            };
      Newtonsoft.Json.Linq.JArray attriBute = new Newtonsoft.Json.Linq.JArray();
      if (device.DeviceEpoint == 2)
      {
        attriBute = new Newtonsoft.Json.Linq.JArray
      //晾衣架的晾衣架的(烘干,风干,消毒,照明状态读取)
      attriBute = new Newtonsoft.Json.Linq.JArray
             {
                new Newtonsoft.Json.Linq.JObject
               {
@@ -333,27 +332,28 @@
                 { "AttriButeId", (int)AttriButeId.Switch}
               }
             };
      }
      else
      {
        attriBute = new Newtonsoft.Json.Linq.JArray {
                new Newtonsoft.Json.Linq.JObject
               {
                    //晾衣架的开关状态(烘干,风干,消毒)
                 { "AttriButeId", (int)AttriButeId.Switch}
               },
                   new Newtonsoft.Json.Linq.JObject
               {
                    //晾衣架的晾衣架的(烘干,风干,消毒)剩余时间
                 { "AttriButeId", (int)AttriButeId.AirerRemainTime}
               },
               new Newtonsoft.Json.Linq.JObject
               {
                   //晾衣架的(烘干,风干,消毒)时间
                 { "AttriButeId", (int)AttriButeId.AirerTime}
               }
            };
      }
      //if (device.DeviceEpoint != 2)
      //{
      //由于设备不支持时间功能,后期才支持,注意处理时间要根据烘干,风干,消毒是否开才发送相应大时间读取数据
      //attriBute = new Newtonsoft.Json.Linq.JArray {
      //        new Newtonsoft.Json.Linq.JObject
      //       {
      //            //晾衣架的开关状态(烘干,风干,消毒)
      //         { "AttriButeId", (int)AttriButeId.Switch}
      //       },
      //           new Newtonsoft.Json.Linq.JObject
      //       {
      //            //晾衣架的晾衣架的(烘干,风干,消毒)剩余时间
      //         { "AttriButeId", (int)AttriButeId.AirerRemainTime}
      //       },
      //       new Newtonsoft.Json.Linq.JObject
      //       {
      //           //晾衣架的(烘干,风干,消毒)时间
      //         { "AttriButeId", (int)AttriButeId.AirerTime}
      //       }
      //    };
      //}
      var data = new Newtonsoft.Json.Linq.JObject { { "AttriBute", attriBute } };
      jObject.Add("Data", data);
      device.Gateway?.Send("GetDeviceStatus", jObject.ToString());