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();