mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
perf: 优化证书申请速度和成功率,反代地址优化,google基本可以稳定请求。增加请求重试。
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
export const headerResource = [
|
||||
{
|
||||
title: "文档",
|
||||
path: "https://certd.docmirror.cn"
|
||||
path: "https://certd.docmirror.cn",
|
||||
meta: {
|
||||
icon: "ion:document-text-outline"
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "源码",
|
||||
|
||||
@@ -170,6 +170,9 @@ h1, h2, h3, h4, h5, h6 {
|
||||
color: #1890ff;
|
||||
}
|
||||
|
||||
.iconify{
|
||||
//font-size: 16px;
|
||||
}
|
||||
|
||||
.icon-box {
|
||||
display: inline-flex;
|
||||
|
||||
@@ -101,8 +101,9 @@
|
||||
<fs-icon
|
||||
v-if="!editMode"
|
||||
class="pointer color-blue ml-2"
|
||||
title="完全重新运行此步骤"
|
||||
icon="SyncOutlined"
|
||||
style="font-size: 16px"
|
||||
title="强制重新执行此步骤"
|
||||
icon="icon-park-outline:replay-music"
|
||||
@click="run(item.id)"
|
||||
></fs-icon>
|
||||
</div>
|
||||
|
||||
@@ -37,8 +37,12 @@ export class CloudflareDnsProvider extends AbstractDnsProvider<CloudflareRecord>
|
||||
}
|
||||
|
||||
async getZoneId(domain: string) {
|
||||
this.logger.info('获取zoneId:', domain);
|
||||
const url = `https://api.cloudflare.com/client/v4/zones?name=${domain}`;
|
||||
const res = await this.doRequestApi(url, null, 'get');
|
||||
if (res.result.length === 0) {
|
||||
throw new Error(`未找到域名${domain}的zoneId`);
|
||||
}
|
||||
return res.result[0].id;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user