From 814d081a72839c3fa19568391460835b7948830c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 27 Oct 2024 04:37:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PHP=E5=85=B3=E9=97=AD=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E4=B8=8B=E8=8E=B7=E5=8F=96=E8=B4=9F=E8=BD=BD=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/apps/php/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/apps/php/service.go b/internal/apps/php/service.go index 9d7aebe4e7..e8c1fec1c1 100644 --- a/internal/apps/php/service.go +++ b/internal/apps/php/service.go @@ -87,7 +87,7 @@ func (s *Service) Load(w http.ResponseWriter, r *http.Request) { client := resty.New().SetTimeout(10 * time.Second) resp, err := client.R().Get(fmt.Sprintf("http://127.0.0.1/phpfpm_status/%d", s.version)) if err != nil || !resp.IsSuccess() { - service.Error(w, http.StatusInternalServerError, "获取负载状态失败:%v", err) + service.Success(w, []types.NV{}) return }