From dd0b0af8742f7b08307f6d19ccf83ab6a6e8f2ce Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 7 Dec 2023 14:07:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=A2=9E=E5=8A=A0=E7=B4=A7=E6=80=A5?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=88=A4=E6=96=AD=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entity/ibp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())