server_check.go 377 B

12345678910111213141516171819
  1. package services
  2. import (
  3. "eta/mysteel_watch/global"
  4. "github.com/rdlucklib/rdluck_tools/http"
  5. )
  6. const (
  7. ServerCheckUrl = "http://127.0.0.1:7007/mysteel_chemical/server"
  8. )
  9. func ServerCheck() {
  10. body, err := http.Get(ServerCheckUrl)
  11. if err != nil {
  12. global.LOG.Error("ServerCheck Err:" + err.Error())
  13. return
  14. }
  15. global.LOG.Debug("ServerCheck Result:" + string(body))
  16. }