zhangzengfei
2024-04-29 41badc87c2c1568b67b438ae1859116325aa0629
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