3 Commits
1.6 ... 1.6.1

Author SHA1 Message Date
net909
8bdf58651c version 2024-08-05 17:10:43 +08:00
net909
350a0bd306 fix 2024-07-25 22:37:41 +08:00
net909
ab074da839 fix 2024-07-25 20:39:21 +08:00
4 changed files with 6 additions and 4 deletions

View File

@@ -72,7 +72,7 @@ class cloudflare implements DnsInterface {
'Line' => $row['proxied'] ? '1' : '0',
'TTL' => $row['ttl'],
'MX' => isset($row['priority']) ? $row['priority'] : null,
'Status' => $row['locked'] ? '0' : '1',
'Status' => '1',
'Weight' => null,
'Remark' => $row['comment'],
'UpdateTime' => $row['modified_on'],
@@ -102,7 +102,7 @@ class cloudflare implements DnsInterface {
'Line' => $data['result']['proxied'] ? '1' : '0',
'TTL' => $data['result']['ttl'],
'MX' => isset($data['result']['priority']) ? $data['result']['priority'] : null,
'Status' => $data['result']['locked'] ? '0' : '1',
'Status' => '1',
'Weight' => null,
'Remark' => $data['result']['comment'],
'UpdateTime' => $data['result']['modified_on'],

View File

@@ -269,8 +269,8 @@ class dnspod implements DnsInterface {
foreach($data['LineGroupList'] as $row){
$line_list[] = ['Name' => $row['Name'], 'LineId' => $row['LineId']];
}
return $line_list;
}
return $line_list;
}
return false;
}

View File

@@ -117,6 +117,7 @@ class huawei implements DnsInterface {
//添加解析记录
public function addDomainRecord($Name, $Type, $Value, $Line = '0', $TTL = 600, $MX = 1, $Remark = null){
$Name = $this->getHost($Name);
if($Type == 'TXT' && substr($Value, 0, 1) != '"') $Value = '"'.$Value.'"';
$records = explode(',', $Value);
$params = ['name' => $Name, 'type' => $this->convertType($Type), 'records' => $records, 'line'=>$Line, 'ttl' => intval($TTL), 'description' => $Remark];
if($Type == 'MX')$param['weight'] = intval($MX);
@@ -127,6 +128,7 @@ class huawei implements DnsInterface {
//修改解析记录
public function updateDomainRecord($RecordId, $Name, $Type, $Value, $Line = '0', $TTL = 600, $MX = 1, $Remark = null){
$Name = $this->getHost($Name);
if($Type == 'TXT' && substr($Value, 0, 1) != '"') $Value = '"'.$Value.'"';
$records = explode(',', $Value);
$params = ['name' => $Name, 'type' => $this->convertType($Type), 'records' => $records, 'line'=>$Line, 'ttl' => intval($TTL), 'description' => $Remark];
if($Type == 'MX')$param['weight'] = intval($MX);

View File

@@ -31,7 +31,7 @@ return [
'show_error_msg' => true,
'exception_tmpl' => \think\facade\App::getAppPath() . 'view/exception.tpl',
'version' => '1011',
'version' => '1012',
'dbversion' => '1011'
];