From af444e1dc15441002f7d5e2fe38af4059802e5ad Mon Sep 17 00:00:00 2001 From: xiaodong Date: Thu, 3 Sep 2026 10:55:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=90=9C=E7=B4=A2=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/ContentService.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/app/service/ContentService.php b/app/service/ContentService.php index 3a371d4..3eb6029 100644 --- a/app/service/ContentService.php +++ b/app/service/ContentService.php @@ -467,14 +467,20 @@ class ContentService { 'check_status' => 3, 'is_del'=>1, ]; - switch ($param['isTop']) { - case 1: - $where['is_top'] = 1; - break; - case 2: - $where['is_top'] = 2; - break; + + if($param['isTop'] != 2){ + $where['is_top'] = 1; } + + // switch ($param['isTop']) { + // case 1: + // $where['is_top'] = 1; + // break; + // case 2: + // $where['is_top'] = 2; + // break; + // } + if($param['isCommend'] != 2){ $where['is_recommend'] = 1; }