From aeb97bb2fcd1d6ae9806e28ade5fc83c0525b105 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:37:51 +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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/adminapi/controller/SingerSong.php b/application/adminapi/controller/SingerSong.php index 6022ba7..2c9edb8 100644 --- a/application/adminapi/controller/SingerSong.php +++ b/application/adminapi/controller/SingerSong.php @@ -21,21 +21,21 @@ class SingerSong extends adminApi //搜索信息有值且是纯数字 if(isset($search) && is_numeric($search)){ $where['ss.user_id'] = $search; - $wheres['ss.user_id'] = $search; + $wheres['user_id'] = $search; } if(isset($search) && !is_numeric($search)){ $where['u.nickname'] = ['like', '%'.$search.'%'];; } if(isset($start_time) && isset($end_time)){ $where['ss.createtime'] = ['between', [strtotime($start_time), strtotime($end_time)]]; - $wheres['ss.createtime'] = ['between', [strtotime($start_time), strtotime($end_time)]]; + $wheres['createtime'] = ['between', [strtotime($start_time), strtotime($end_time)]]; } if(isset($status)){ $where['ss.status'] = $status; - $wheres['ss.status'] = $status; + $wheres['status'] = $status; }else{ $where['ss.status'] = 0; - $wheres['ss.status'] = 0; + $wheres['status'] = 0; } $count = db::name('vs_singer')->where($wheres)->count();