点唱
This commit is contained in:
@@ -179,15 +179,15 @@ class SingerSong extends adminApi
|
|||||||
return V(0, '请填写房间ID');
|
return V(0, '请填写房间ID');
|
||||||
}
|
}
|
||||||
if($type==1){
|
if($type==1){
|
||||||
$where['createtime'] = ['between', [strtotime(date('Y-m-d')), strtotime(date('Y-m-d', strtotime('+1 day')))]];
|
$where['o.createtime'] = ['between', [strtotime(date('Y-m-d')), strtotime(date('Y-m-d', strtotime('+1 day')))]];
|
||||||
}elseif($type==2){
|
}elseif($type==2){
|
||||||
$where['createtime'] = ['between', [strtotime(date('Y-m-d', strtotime('-7 day'))), strtotime(date('Y-m-d'))]];
|
$where['o.createtime'] = ['between', [strtotime(date('Y-m-d', strtotime('-7 day'))), strtotime(date('Y-m-d'))]];
|
||||||
}elseif($type==3){
|
}elseif($type==3){
|
||||||
$where['createtime'] = ['between', [strtotime(date('Y-m-01')), strtotime(date('Y-m-t', strtotime(date('Y-m-01'))))]];
|
$where['o.createtime'] = ['between', [strtotime(date('Y-m-01')), strtotime(date('Y-m-t', strtotime(date('Y-m-01'))))]];
|
||||||
}elseif($type==4){
|
}elseif($type==4){
|
||||||
$where['createtime'] = ['between', [strtotime(date('Y-m-d', strtotime('-1 day'))), strtotime(date('Y-m-d'))]];
|
$where['o.createtime'] = ['between', [strtotime(date('Y-m-d', strtotime('-1 day'))), strtotime(date('Y-m-d'))]];
|
||||||
}
|
}
|
||||||
$count = db::name('vs_song_log')->where($where)->count();
|
$count = db::name('vs_song_log')->alias('o')->where($where)->count();
|
||||||
$list = db::name('vs_song_log')
|
$list = db::name('vs_song_log')
|
||||||
->alias('o')
|
->alias('o')
|
||||||
->join('user u', 'o.user_id=u.id')
|
->join('user u', 'o.user_id=u.id')
|
||||||
|
|||||||
Reference in New Issue
Block a user