diff --git a/entity/ibp.go b/entity/ibp.go index 3766d3f..994c520 100644 --- a/entity/ibp.go +++ b/entity/ibp.go @@ -185,7 +185,7 @@ func LoadEMPEntity(w ecs.World, entry *ecs.Entry, datas []*repository.Electronic d.EMPD = NewIBPLightEntity(w, c.Id(), entityMap) } else if ok && strings.HasSuffix(c.Code(), "EMPFA") { d.EMPFA_BTN = NewButtonEntity(w, b, entityMap) - } else if ok && strings.HasPrefix(c.Code(), "EMP") { + } else if ok && (strings.HasPrefix(c.Code(), "EMP") || strings.HasPrefix(c.Code(), "ESB")) { d.EMP_BTNS = append(d.EMP_BTNS, NewButtonEntity(w, b, entityMap)) } else { slog.Warn("未实现设备[id:%s]逻辑", c.Id())