zhangzengfei
2024-05-17 9e8d8b630affc4a4be428c775264ef4b0e5104b3
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