fix: 同步更新namesilo接口,修复无法创建和删除dns记录的问题

pull/409/head
xiaojunnuo 2025-05-27 10:31:48 +08:00
parent e6195ade3e
commit 36b02c2cec
1 changed files with 2 additions and 2 deletions

View File

@ -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}`);
} }