【增加紧急按钮判断】

This commit is contained in:
weizhihong 2023-12-07 14:07:53 +08:00
parent ec9e136495
commit dd0b0af874

View File

@ -185,7 +185,7 @@ func LoadEMPEntity(w ecs.World, entry *ecs.Entry, datas []*repository.Electronic
d.EMPD = NewIBPLightEntity(w, c.Id(), entityMap) d.EMPD = NewIBPLightEntity(w, c.Id(), entityMap)
} else if ok && strings.HasSuffix(c.Code(), "EMPFA") { } else if ok && strings.HasSuffix(c.Code(), "EMPFA") {
d.EMPFA_BTN = NewButtonEntity(w, b, entityMap) 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)) d.EMP_BTNS = append(d.EMP_BTNS, NewButtonEntity(w, b, entityMap))
} else { } else {
slog.Warn("未实现设备[id:%s]逻辑", c.Id()) slog.Warn("未实现设备[id:%s]逻辑", c.Id())