舱内状态
This commit is contained in:
parent
3b8ceac025
commit
d6391ee295
|
|
@ -444,12 +444,12 @@ public class TuohengService {
|
||||||
log.info("【状态同步】收到舱门状态(heartbeat): sn={}, status={}", deviceSn, status);
|
log.info("【状态同步】收到舱门状态(heartbeat): sn={}, status={}", deviceSn, status);
|
||||||
|
|
||||||
// 根据 status 值更新舱门状态
|
// 根据 status 值更新舱门状态
|
||||||
// 1 = 开仓, 2 = 关仓
|
// 0 = 开仓, 1 = 关仓
|
||||||
CoverState coverState;
|
CoverState coverState;
|
||||||
if (status == 1) {
|
if (status == 0) {
|
||||||
coverState = CoverState.OPENED;
|
coverState = CoverState.OPENED;
|
||||||
log.info("【状态同步】同步舱门开启状态(heartbeat): sn={}, status={}", deviceSn, status);
|
log.info("【状态同步】同步舱门开启状态(heartbeat): sn={}, status={}", deviceSn, status);
|
||||||
} else if (status == 2) {
|
} else if (status == 1) {
|
||||||
coverState = CoverState.CLOSED;
|
coverState = CoverState.CLOSED;
|
||||||
log.info("【状态同步】同步舱门关闭状态(heartbeat): sn={}, status={}", deviceSn, status);
|
log.info("【状态同步】同步舱门关闭状态(heartbeat): sn={}, status={}", deviceSn, status);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue