From a6a844ade0bb2d4f7f3e9a49fde158f2d56cf291 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, 8 Jan 2026 09:39:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=BB=91=E5=B1=8B=20=E4=B8=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=B0=8F=E6=97=B6=E6=A6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/Room.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/api/model/Room.php b/application/api/model/Room.php index 537e8372..ff1d8af5 100644 --- a/application/api/model/Room.php +++ b/application/api/model/Room.php @@ -977,7 +977,7 @@ class Room extends Model //小时榜 $open_time = db::name('vs_hour_ranking_config')->where('id', 1)->value('open_time'); - if($open_time > 0){ + if($open_time > 0 || $room_type !=6){ if($open_time <= time()){ $hour_open = 1;//开启 }else{ @@ -1190,7 +1190,7 @@ class Room extends Model $user_info['is_room_owner'] = ($user_id == $room['user_id']) ? 1 : 0; $open_time = db::name('vs_hour_ranking_config')->order('id', 'desc')->value('open_time'); - if($open_time > 0){ + if($open_time > 0 || $room_type !=6){ if($open_time <= time()){ $hour_open = 1;//开启 }else{ @@ -1485,7 +1485,6 @@ class Room extends Model $cp_users['dress1'] = model('api/Decorate')->user_decorate_detail($cp_users['user_id1'],1); } - return $cp_users; }