From 423f0cf7a4fb588fb16015eefc13de9a27014e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Thu, 25 Sep 2025 02:56:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=8E=A8=E8=8D=90=E6=88=BF?= =?UTF-8?q?=E9=97=B4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/api/model/DailyTasks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/api/model/DailyTasks.php b/application/api/model/DailyTasks.php index e148df2..f1752b2 100644 --- a/application/api/model/DailyTasks.php +++ b/application/api/model/DailyTasks.php @@ -135,13 +135,13 @@ class DailyTasks extends Model $v['processing_type'] = 2; $v['processing_type_str'] = $this->processing_type_str[$v['processing_type']]; //跳转的房间路径 - $v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6]])->orderRaw('rand()')->value('id'); + $v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6],'apply_status'=>2])->orderRaw('rand()')->value('id'); $v['target_quantity'] = $v['target_quantity'] * 60; $v['is_time'] = 1; }elseif(in_array($v['task_id'],[10])){ $v['processing_type'] = 7; $v['processing_type_str'] = $this->processing_type_str[$v['processing_type']]; - $v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6]])->orderRaw('rand()')->value('id'); + $v['from_id'] = db::name('vs_room')->where(['delete_time'=>0,'room_status'=>1,'type_id'=>['<>',6],'apply_status'=>2])->orderRaw('rand()')->value('id'); } else{ $v['processing_type'] = 9; $v['processing_type_str'] = $this->processing_type_str[$v['processing_type']];