From 4145e282f91e9eaca6c7bf576b5cd96f53ebca2b Mon Sep 17 00:00:00 2001 From: net909 Date: Fri, 30 Aug 2024 14:41:29 +0800 Subject: [PATCH] fix --- app/lib/dns/aliyun.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/dns/aliyun.php b/app/lib/dns/aliyun.php index 0794c17..5cb9d77 100644 --- a/app/lib/dns/aliyun.php +++ b/app/lib/dns/aliyun.php @@ -138,7 +138,7 @@ class aliyun implements DnsInterface { public function addDomainRecord($Name, $Type, $Value, $Line = 'default', $TTL = 600, $MX = null, $Remark = null){ $param = ['Action' => 'AddDomainRecord', 'DomainName' => $this->domain, 'RR' => $Name, 'Type' => $Type, 'Value' => $Value, 'Line' => $this->convertLineCode($Line), 'TTL' => intval($TTL)]; if($MX){ - $params['Priority'] = intval($MX); + $param['Priority'] = intval($MX); } $data = $this->request($param, true); if($data){ @@ -151,7 +151,7 @@ class aliyun implements DnsInterface { public function updateDomainRecord($RecordId, $Name, $Type, $Value, $Line = 'default', $TTL = 600, $MX = null, $Remark = null){ $param = ['Action' => 'UpdateDomainRecord', 'RecordId' => $RecordId, 'RR' => $Name, 'Type' => $Type, 'Value' => $Value, 'Line' => $this->convertLineCode($Line), 'TTL' => intval($TTL)]; if($MX){ - $params['Priority'] = intval($MX); + $param['Priority'] = intval($MX); } return $this->request($param); }