From 8b473b95d6a84767d98acdae1894b811aa4f5d2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Thu, 11 Dec 2025 14:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/controller/Search.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/api/controller/Search.php b/application/api/controller/Search.php index d233e5f1..529fd16e 100644 --- a/application/api/controller/Search.php +++ b/application/api/controller/Search.php @@ -147,7 +147,7 @@ class Search extends BaseCom } $rooms = db::name('vs_room')->field('id as room_id,room_name,room_cover,room_number,label_id,today_hot_value')->where($where1)->select(); - if(isset($rooms)){ + if($rooms){ foreach ($rooms as $vv){ $vv['label_icon'] = db::name('vs_room_label')->where('id', $vv['label_id'])->value('label_icon'); $vv['hot_value'] = $vv['today_hot_value'];