perf: 524错误时重试3次

This commit is contained in:
xiaojunnuo
2026-04-27 23:51:27 +08:00
parent 9c7b419e8f
commit 00e6d580c2
6 changed files with 31 additions and 76 deletions
@@ -93,6 +93,9 @@ export class OnePanelClient {
if (res.code === 200) {
return res.data;
}
if (res?.message?.includes("record not found")){
throw new Error("没有找到证书,请确认证书在1panel上是否已被删除,如果被删除请重新选择新的证书id:"+ config.url);
}
throw new Error(res.message);
}
@@ -40,3 +40,4 @@ function randomStr(length, options?) {
}
export const RandomUtil = { randomStr };