From 41badc87c2c1568b67b438ae1859116325aa0629 Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期一, 29 四月 2024 14:04:55 +0800 Subject: [PATCH] 修改人脸上报的url --- client/faces.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/client/faces.go b/client/faces.go index 6c25b7c..7dde6a4 100644 --- a/client/faces.go +++ b/client/faces.go @@ -2,6 +2,8 @@ import ( "encoding/json" + "fmt" + "gat1400Exchange/config" "gat1400Exchange/pkg/logger" "gat1400Exchange/util" "gat1400Exchange/vo" @@ -16,7 +18,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