From 53ec0e12df3d65d94896f48f2364697b6d8e4532 Mon Sep 17 00:00:00 2001 From: net909 Date: Wed, 28 Aug 2024 16:51:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AB=98=E7=89=88=E6=9C=ACph?= =?UTF-8?q?p?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Domain.php | 3 ++- app/lib/DnsHelper.php | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controller/Domain.php b/app/controller/Domain.php index bbd01bf..f163078 100644 --- a/app/controller/Domain.php +++ b/app/controller/Domain.php @@ -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']); } diff --git a/app/lib/DnsHelper.php b/app/lib/DnsHelper.php index fa01136..f7f47ab 100644 --- a/app/lib/DnsHelper.php +++ b/app/lib/DnsHelper.php @@ -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;