mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-21 15:31:12 +08:00
修复ucloud证书
This commit is contained in:
parent
17c50e4ba1
commit
9d4260062c
@ -80,7 +80,7 @@ class ucloud implements CertInterface
|
||||
if (!empty($data['Auths'])) {
|
||||
foreach ($data['Auths'] as $auth) {
|
||||
$mainDomain = getMainDomain($auth['Domain']);
|
||||
$name = substr($auth['Domain'], 0, -(strlen($mainDomain) + 1));
|
||||
$name = substr($auth['AuthKey'], 0, -(strlen($mainDomain) + 1));
|
||||
$dnsList[$mainDomain][] = ['name' => $name, 'type' => $auth['AuthType'] == 'DNS_TXT' ? 'TXT' : 'CNAME', 'value' => $auth['AuthValue']];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user