From 56adb8d4546c0b6a0d8769aad4c3d5ede3f6f309 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 29 三月 2024 13:55:50 +0800
Subject: [PATCH] fix bug

---
 service/nvcs.go |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/service/nvcs.go b/service/nvcs.go
index fb255cd..7882db5 100644
--- a/service/nvcs.go
+++ b/service/nvcs.go
@@ -85,6 +85,10 @@
 			continue
 		}
 
+		if data.Elevator[0].Status.RunDir > 0 {
+			continue
+		}
+
 		elevator := data.Elevator[0]
 		var d = models.Device{
 			Id:  elevator.Name,

--
Gitblit v1.8.0