diff --git a/application/cron/controller/RoomHourRanking.php b/application/cron/controller/RoomHourRanking.php index 05305b6c..69aeb702 100644 --- a/application/cron/controller/RoomHourRanking.php +++ b/application/cron/controller/RoomHourRanking.php @@ -485,11 +485,8 @@ class RoomHourRanking * 配置: */ public function clear_room_today_hot_value() { - $where = []; - $where['delete_time'] = 0; - $where['is_show_room'] = 1; - $where['today_hot_value'] = ['gt',0]; - $room = db::name('vs_room')->where($where)->select(); + + $room = db::name('vs_room')->where(['room_status' => 1,'today_hot_value' => ['>',0]])->select(); echo date('Y-m-d H:i:s').' 开始清零:'.count($room)."\n"; foreach ($room as $key => $value) { $data = [