From df794921a35a231eba9ee61eafb68d5c1cbc7043 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期四, 13 六月 2024 18:35:57 +0800
Subject: [PATCH] 完善A2梯控的电梯运行状态显示
---
client/system.go | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/client/system.go b/client/system.go
index 03b42ae..b2e540b 100644
--- a/client/system.go
+++ b/client/system.go
@@ -3,11 +3,11 @@
import (
"encoding/json"
"fmt"
- "gat1400Exchange/util"
"io/ioutil"
"gat1400Exchange/config"
"gat1400Exchange/pkg/logger"
+ "gat1400Exchange/util"
"gat1400Exchange/vo"
dac "github.com/xinsnake/go-http-digest-auth-client"
@@ -89,8 +89,9 @@
},
}
+ url := fmt.Sprintf("%s://%s:%s%s", config.ClientConf.Proto, config.ClientConf.ServerAddr, config.ClientConf.ServerPort, KeepaliveUrI)
b, _ := json.Marshal(body)
- rsp, err := util.HttpPost(KeepaliveUrI, headers, b)
+ rsp, err := util.HttpPost(url, headers, b)
if err != nil {
logger.Warn("Keepalive request failed, %s", err.Error())
return vo.StatusOtherError
--
Gitblit v1.8.0