zhangzengfei
2024-10-22 2c77f012601b7788dc58b0c9fd99aad587983b0d
client/system.go
@@ -3,7 +3,7 @@
import (
   "encoding/json"
   "fmt"
   "gat1400Exchange/util"
   "gat1400Exchange/pkg"
   "io/ioutil"
   "gat1400Exchange/config"
@@ -89,8 +89,9 @@
      },
   }
   url := fmt.Sprintf("%s://%s:%s%s", config.ClientConf.Proto, config.ClientConf.ServerAddr, config.ClientConf.ServerPort, KeepaliveUrI)
   b, _ := json.Marshal(body)
   rsp, err := util.HttpPost(KeepaliveUrI, headers, b)
   rsp, err := pkg.HttpPost(url, headers, b)
   if err != nil {
      logger.Warn("Keepalive request failed, %s", err.Error())
      return vo.StatusOtherError