mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2024-11-16 11:42:35 +08:00
fix
This commit is contained in:
parent
53ec0e12df
commit
4145e282f9
|
@ -138,7 +138,7 @@ class aliyun implements DnsInterface {
|
||||||
public function addDomainRecord($Name, $Type, $Value, $Line = 'default', $TTL = 600, $MX = null, $Remark = null){
|
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)];
|
$param = ['Action' => 'AddDomainRecord', 'DomainName' => $this->domain, 'RR' => $Name, 'Type' => $Type, 'Value' => $Value, 'Line' => $this->convertLineCode($Line), 'TTL' => intval($TTL)];
|
||||||
if($MX){
|
if($MX){
|
||||||
$params['Priority'] = intval($MX);
|
$param['Priority'] = intval($MX);
|
||||||
}
|
}
|
||||||
$data = $this->request($param, true);
|
$data = $this->request($param, true);
|
||||||
if($data){
|
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){
|
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)];
|
$param = ['Action' => 'UpdateDomainRecord', 'RecordId' => $RecordId, 'RR' => $Name, 'Type' => $Type, 'Value' => $Value, 'Line' => $this->convertLineCode($Line), 'TTL' => intval($TTL)];
|
||||||
if($MX){
|
if($MX){
|
||||||
$params['Priority'] = intval($MX);
|
$param['Priority'] = intval($MX);
|
||||||
}
|
}
|
||||||
return $this->request($param);
|
return $this->request($param);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user