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; }