From a37eb9f660a74ab2ad0ca2e502454808ef6f5276 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, 13 Nov 2025 17:34:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=94=B1=E5=90=8E=E7=AB=AF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/adminapi/controller/SingerSong.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/adminapi/controller/SingerSong.php b/application/adminapi/controller/SingerSong.php index 9de245f..39979a6 100644 --- a/application/adminapi/controller/SingerSong.php +++ b/application/adminapi/controller/SingerSong.php @@ -21,20 +21,24 @@ class SingerSong extends adminApi //搜索信息有值且是纯数字 if(isset($search) && is_numeric($search)){ $where['ss.user_id'] = $search; + $wheres['ss.user_id'] = $search; } if(isset($search) && !is_numeric($search)){ $where['u.nickname'] = ['like', '%'.$search.'%'];; } if(isset($start_time) && isset($end_time)){ $where['ss.create_time'] = ['between', [strtotime($start_time), strtotime($end_time)]]; + $wheres['ss.create_time'] = ['between', [strtotime($start_time), strtotime($end_time)]]; } if(isset($status)){ $where['ss.status'] = $status; + $wheres['ss.status'] = $status; }else{ $where['ss.status'] = 0; + $wheres['ss.status'] = 0; } - $count = db::name('vs_singer')->where($where)->count(); + $count = db::name('vs_singer')->where($wheres)->count(); $list = db::name('vs_singer') ->alias('ss') ->join('user u', 'ss.user_id=u.id', 'left')