2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 10:17:17 +08:00

feat: api请求添加自动重试

This commit is contained in:
2026-01-26 16:32:52 +08:00
parent 7c6c5f213d
commit 522c2386a1
2 changed files with 3 additions and 2 deletions

View File

@@ -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,