修改http客户端功能

This commit is contained in:
ayflying
2025-12-24 15:33:08 +08:00
parent 6b304efc0e
commit 85d14a9489
8 changed files with 506 additions and 217 deletions

View File

@@ -26,7 +26,7 @@ func (s *sSystemCron) Guardian(DingTalkWebHook string) {
cfg, _ := g.Cfg().Get(gctx.New(), "serverList")
cfg.Scan(&list)
for _, v := range list {
get, err := g.Client().Discovery(nil).Get(gctx.New(), v.Address+"/callback/status")
get, err := g.Client().Get(gctx.New(), v.Address+"/callback/status")
defer get.Close()
if err != nil {