From 522c2386a129f32abdb0d5c77515c2f185ca259e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 26 Jan 2026 16:32:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20api=E8=AF=B7=E6=B1=82=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E9=87=8D=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/data/cert_account.go | 4 ++-- pkg/api/api.go | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/data/cert_account.go b/internal/data/cert_account.go index 0405d7a1..0bd47540 100644 --- a/internal/data/cert_account.go +++ b/internal/data/cert_account.go @@ -212,7 +212,7 @@ func (r certAccountRepo) getGoogleEAB() (*acme.EAB, error) { } client := resty.New() client.SetTimeout(5 * time.Second) - client.SetRetryCount(2) + client.SetRetryCount(3) resp, err := client.R().SetResult(&data{}).Get("https://gts.rat.dev/eab") if err != nil || !resp.IsSuccess() { @@ -235,7 +235,7 @@ func (r certAccountRepo) getZeroSSLEAB(email string) (*acme.EAB, error) { } client := resty.New() client.SetTimeout(5 * time.Second) - client.SetRetryCount(2) + client.SetRetryCount(3) resp, err := client.R().SetFormData(map[string]string{ "email": email, diff --git a/pkg/api/api.go b/pkg/api/api.go index d5c53712..d730fe04 100644 --- a/pkg/api/api.go +++ b/pkg/api/api.go @@ -34,6 +34,7 @@ func NewAPI(panelVersion, locale string, url ...string) *API { } client := resty.New() + client.SetRetryCount(3) client.SetTimeout(10 * time.Second) client.SetBaseURL(url[0]) client.SetHeader(