mirror of
https://github.com/certd/certd.git
synced 2026-04-24 12:27:25 +08:00
fix: 同步更新namesilo接口,修复无法创建和删除dns记录的问题
This commit is contained in:
@@ -44,7 +44,7 @@ export class NamesiloDnsProvider extends AbstractDnsProvider<NamesiloRecord> {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.reply?.code !== '300') {
|
if (res.reply?.code !== '300' && res.reply?.code !== 300 && res.reply?.detail!=="success") {
|
||||||
throw new Error(`${JSON.stringify(res.reply.detail)}`);
|
throw new Error(`${JSON.stringify(res.reply.detail)}`);
|
||||||
}
|
}
|
||||||
return res.reply;
|
return res.reply;
|
||||||
@@ -93,7 +93,7 @@ export class NamesiloDnsProvider extends AbstractDnsProvider<NamesiloRecord> {
|
|||||||
const recordId = record.record_id;
|
const recordId = record.record_id;
|
||||||
await this.doRequest('/api/dnsDeleteRecord', {
|
await this.doRequest('/api/dnsDeleteRecord', {
|
||||||
domain: options.recordReq.domain,
|
domain: options.recordReq.domain,
|
||||||
record_id: recordId,
|
rrid: recordId,
|
||||||
});
|
});
|
||||||
this.logger.info(`删除域名解析成功:fullRecord=${fullRecord},value=${value}`);
|
this.logger.info(`删除域名解析成功:fullRecord=${fullRecord},value=${value}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user