fix: 修复西部数码账户级别apikey不可用的bug

This commit is contained in:
xiaojunnuo
2024-10-01 23:34:01 +08:00
parent f2f56adfd7
commit f8f3e8b43f
6 changed files with 41 additions and 23 deletions
@@ -37,7 +37,7 @@ export class WestDnsProvider extends AbstractDnsProvider<westRecord> {
private async doRequestApi(url: string, data: any = null, method = 'post') {
if (this.access.scope === 'account') {
data.apikey = this.access.apikey;
data.apikey = this.ctx.utils.hash.md5(this.access.apikey);
data.username = this.access.username;
} else {
data.apidomainkey = this.access.apidomainkey;