From d91a9e0d2a275bb0f12a46da6aba5b99fa293baf Mon Sep 17 00:00:00 2001 From: lqmac Date: Mon, 4 Mar 2024 21:16:53 +0800 Subject: [PATCH] 1 --- app/common/model/Category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/model/Category.php b/app/common/model/Category.php index a01f24f5..cefeeff2 100644 --- a/app/common/model/Category.php +++ b/app/common/model/Category.php @@ -87,7 +87,7 @@ class Category extends BaseModel $filter = []; $params['status'] > -1 && $filter[] = ['status', '=', $params['status']]; - if (!empty($_GET['is_hot']) && $_GET['is_hot'] == 1) { + if (isset($param['is_hot']) && $param['is_hot'] != "") { $filter[] = ['is_hot', '=', $params['is_hot']]; } //添加店内分类