zhangzengfei
2024-04-29 41badc87c2c1568b67b438ae1859116325aa0629
修改人脸上报的url
1个文件已修改
5 ■■■■ 已修改文件
client/faces.go 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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