【增加紧急按钮判断】
This commit is contained in:
parent
ec9e136495
commit
dd0b0af874
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user