From 2fc94ba7b517125a7ed9771b48bb5d383021bc91 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期日, 20 十月 2024 01:57:09 +0800 Subject: [PATCH] 优化楼层数据获取 --- controller/nvcsCtl.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/controller/nvcsCtl.go b/controller/nvcsCtl.go index 089d8fe..c1ef35d 100644 --- a/controller/nvcsCtl.go +++ b/controller/nvcsCtl.go @@ -1,7 +1,7 @@ package controller import ( - "gat1400Exchange/service" + "gat1400Exchange/nvcs" "github.com/gin-gonic/gin" "net/http" ) @@ -18,9 +18,9 @@ func (n NVCSController) RunStatus(c *gin.Context) { var runStatus = make(map[string]string, 0) - runStatus["floor"] = service.ElevatorRunFloor + runStatus["floor"] = nvcs.ElevatorRunFloor - switch service.ElevatorRunState { + switch nvcs.ElevatorRunState { case 0: runStatus["status"] = "鍋�" case 1: -- Gitblit v1.8.0