mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2024-11-16 03:32:28 +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){
|
||||
$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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user