修改一些BUG

BUG1,给天猫上传的设备名字如何为空,天猫就会报错。2 网页上显示的 门开门关,其实本质上是 门磁,现在直接 用门磁的值来表示门开门关
This commit is contained in:
2025-12-31 14:19:59 +08:00
parent f9fe3a36e6
commit 7be877418c
5 changed files with 35 additions and 12 deletions

View File

@@ -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));//别名不为空才添加