修复高版本php

This commit is contained in:
net909 2024-08-28 16:51:51 +08:00
parent b8addd6d27
commit 53ec0e12df
2 changed files with 2 additions and 3 deletions

View File

@ -362,7 +362,8 @@ class Domain extends BaseController
$row['LineName'] = isset($recordLine[$row['Line']]) ? $recordLine[$row['Line']]['name'] : $row['Line'];
}
if($dns->type == 'baidu'){
$dnstype = Db::name('account')->where('id', $drow['aid'])->value('type');
if($dnstype == 'baidu'){
return json($domainRecords['list']);
}

View File

@ -117,7 +117,6 @@ class DnsHelper
$config['domain'] = $domain;
$config['domainid'] = $domainid;
$model = new $class($config);
$model->type = $dnstype;
return $model;
}
return false;
@ -131,7 +130,6 @@ class DnsHelper
$config['domain'] = $config['name'];
$config['domainid'] = $config['thirdid'];
$model = new $class($config);
$model->type = $dnstype;
return $model;
}
return false;