From 2ef7bb54e8cdfea386fb5d09c48700bc2201b71f Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期三, 22 五月 2024 01:22:47 +0800
Subject: [PATCH] 调整数据清理策略

---
 service/nvcs.go |   24 ++++++++++--------------
 1 files changed, 10 insertions(+), 14 deletions(-)

diff --git a/service/nvcs.go b/service/nvcs.go
index 64464fa..acb1177 100644
--- a/service/nvcs.go
+++ b/service/nvcs.go
@@ -6,7 +6,6 @@
 	"fmt"
 	"io/ioutil"
 	"net"
-	"strings"
 	"time"
 
 	"gat1400Exchange/config"
@@ -93,16 +92,16 @@
 			continue
 		}
 
-		// 璁剧疆osd  鏍煎紡 "1F鍋� 鍥� 鏋�"
+		// 璁剧疆osd  鏍煎紡 "1F 鍥� 鏋�"
 		if config.NVCSConf.OSD != "" {
 			floorText := data.Elevator[0].Status.FloorName
-			if data.Elevator[0].Status.RunDir == RunStop {
-				floorText = floorText + "鍋�"
-			} else if data.Elevator[0].Status.RunDir == RunUp {
-				floorText = floorText + "涓�"
-			} else {
-				floorText = floorText + "涓�"
-			}
+			//if data.Elevator[0].Status.RunDir == RunStop {
+			//	floorText = floorText + "鍋�"
+			//} else if data.Elevator[0].Status.RunDir == RunUp {
+			//	floorText = floorText + "涓�"
+			//} else {
+			//	floorText = floorText + "涓�"
+			//}
 
 			floorText = floorText + " " + config.NVCSConf.OSD
 
@@ -117,11 +116,8 @@
 		elevator := data.Elevator[0]
 
 		// 绋嬪簭閮ㄧ讲鍦ㄨ澶囩, 瀛楃鍙犲姞鍣ㄤ笂鎶ョ殑鍚嶇О鍏佽涓虹┖. 鍦ㄤ簯绔�, 鍚嶇О蹇呴』涓庢憚鍍忔満鐩稿悓
-		if config.ServeConf.Role != "agent" {
-			elevator.Name = strings.Trim(elevator.Name, " ")
-			if elevator.Name == "" {
-				continue
-			}
+		if elevator.Name == "" {
+			elevator.Name = "1"
 		}
 
 		var d = models.Positions{

--
Gitblit v1.8.0