From 90ebf117a7e1ccf630361fe0f66289563b1eeb25 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期六, 18 五月 2024 11:48:43 +0800
Subject: [PATCH] 修复设备类型缓存的使用
---
client/faces.go | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/client/faces.go b/client/faces.go
index 6c25b7c..c4f1f17 100644
--- a/client/faces.go
+++ b/client/faces.go
@@ -1,7 +1,10 @@
package client
import (
+ "fmt"
+
"encoding/json"
+ "gat1400Exchange/config"
"gat1400Exchange/pkg/logger"
"gat1400Exchange/util"
"gat1400Exchange/vo"
@@ -16,7 +19,8 @@
return clientStatus
}
- rsp, err := util.HttpPost(FacesUrI, headers, msg)
+ url := fmt.Sprintf("%s://%s:%s%s", config.ClientConf.Proto, config.ClientConf.ServerAddr, config.ClientConf.ServerPort, FacesUrI)
+ rsp, err := util.HttpPost(url, headers, msg)
if err != nil {
logger.Warn("Post faces failed, %s", err.Error())
return vo.StatusOtherError
--
Gitblit v1.8.0