From d19202765be048b7f6d6f78812e958895378d65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=8D=8E=E6=B8=85?= <18691022700@163.com> Date: Fri, 14 Nov 2025 17:12:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E6=AD=8C=E6=89=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8=20=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/adminapi/controller/SingerSong.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/application/adminapi/controller/SingerSong.php b/application/adminapi/controller/SingerSong.php index 36a6a0d..4ace46c 100644 --- a/application/adminapi/controller/SingerSong.php +++ b/application/adminapi/controller/SingerSong.php @@ -30,12 +30,9 @@ class SingerSong extends adminApi $where['ss.createtime'] = ['between', [strtotime($start_time), strtotime($end_time)]]; $wheres['createtime'] = ['between', [strtotime($start_time), strtotime($end_time)]]; } - if(isset($status)){ + if($status){ $where['ss.status'] = $status; $wheres['status'] = $status; - }else{ - $where['ss.status'] = 0; - $wheres['status'] = 0; } $count = db::name('vs_singer')->where($wheres)->count();