From 42b2242570ea3335655ac757693170010b9d22ca Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Thu, 17 Apr 2025 10:08:08 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=8E=BB=E9=99=A4=E5=A4=9A?= =?UTF-8?q?=E4=BD=99banner=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/us/controller/TopsNas.php | 5 +---- app/usmobile/controller/TopsNas.php | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/us/controller/TopsNas.php b/app/us/controller/TopsNas.php index e3ab4ab..0e0e8d5 100755 --- a/app/us/controller/TopsNas.php +++ b/app/us/controller/TopsNas.php @@ -262,15 +262,12 @@ class TopsNas extends BaseController // 下载 public function download() { - $focus_image = []; $downloads = []; // 获取banner - $banners = $this->getBanners([129, 130]); + $banners = $this->getBanners([129]); if (!empty($banners)) { - $focus_image = $banners['typeid_130']['banners']; $downloads = $banners['typeid_129']['banners']; } - $this->assign('focus_image', $focus_image); $this->assign('downloads', $downloads); return $this->fetch(); diff --git a/app/usmobile/controller/TopsNas.php b/app/usmobile/controller/TopsNas.php index a496a6c..72cf3c0 100755 --- a/app/usmobile/controller/TopsNas.php +++ b/app/usmobile/controller/TopsNas.php @@ -251,15 +251,12 @@ class TopsNas extends BaseController public function download() { - $focus_image = []; $downloads = []; // 获取banner - $banners = $this->getBanners([129, 130]); + $banners = $this->getBanners([129]); if (!empty($banners)) { - $focus_image = $banners['typeid_130']['banners']; $downloads = $banners['typeid_129']['banners']; } - $this->assign('focus_image', $focus_image); $this->assign('downloads', $downloads); return $this->fetch();