修改一些BUG
BUG1,给天猫上传的设备名字如何为空,天猫就会报错。2 网页上显示的 门开门关,其实本质上是 门磁,现在直接 用门磁的值来表示门开门关
This commit is contained in:
@@ -4038,6 +4038,10 @@ namespace WebSite.Controllers
|
||||
devicesItem = new Domain.IoTAliGenieEntity.DevicesItem();
|
||||
devicesItem.number = hostModal.Modal.ModalAddress;
|
||||
devicesItem.deviceName = hostModal.Modal.Name;
|
||||
if (string.IsNullOrEmpty(hostModal.Modal.Name))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(hostModal.Modal.AliasName))
|
||||
{
|
||||
devicesItem.aliasList = new List<string>(hostModal.Modal.AliasName.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries));//别名不为空才添加
|
||||
|
||||
Reference in New Issue
Block a user