From 98f185ee8e526f74dc759ca9eff6b5a28fdafb2b Mon Sep 17 00:00:00 2001 From: net909 Date: Fri, 8 Aug 2025 10:13:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF=E4=BA=91?= =?UTF-8?q?=E5=90=8A=E9=94=80=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/lib/cert/tencent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/lib/cert/tencent.php b/app/lib/cert/tencent.php index 8260aa3..9a578cd 100644 --- a/app/lib/cert/tencent.php +++ b/app/lib/cert/tencent.php @@ -159,9 +159,9 @@ class tencent implements CertInterface if (!empty($data['RevokeDomainValidateAuths'])) { $dnsList = []; foreach ($data['RevokeDomainValidateAuths'] as $opts) { - $mainDomain = getMainDomain($opts['DomainValidateAuthDomain']); - $name = str_replace('.' . $mainDomain, '', $opts['DomainValidateAuthKey']); - $dnsList[$mainDomain][] = ['name' => $name, 'type' => 'CNAME', 'value' => $opts['DomainValidateAuthValue']]; + $mainDomain = getMainDomain($opts['DomainValidateAuthKey']); + $name = substr($opts['DomainValidateAuthKey'], 0, -(strlen($mainDomain) + 1)); + $dnsList[$mainDomain][] = ['name' => $name, 'type' => 'TXT', 'value' => $opts['DomainValidateAuthValue']]; } \app\utils\CertDnsUtils::addDns($dnsList, function ($txt) { $this->log($txt);