mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2024-11-15 19:22:22 +08:00
修复高版本php
This commit is contained in:
parent
b8addd6d27
commit
53ec0e12df
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user