巡乐会抽奖接口提交.-后台列表修改
This commit is contained in:
@@ -726,20 +726,21 @@ class BlindBox extends adminApi
|
||||
$room_id = input('room_id', '');
|
||||
$periods = input('periods', '');
|
||||
$where = [];
|
||||
$where['room_id'] = $room_id;
|
||||
$where['b.room_id'] = $room_id;
|
||||
if($gift_id){
|
||||
$where['gift_id'] = $gift_id;
|
||||
$where['b.gift_id'] = $gift_id;
|
||||
}
|
||||
if($user_id){
|
||||
$user_id = db::name('user')->where('user_code', $user_id)->value('id');
|
||||
$where['user_id'] = $user_id;
|
||||
$where['b.user_id'] = $user_id;
|
||||
}
|
||||
if($periods){
|
||||
$where['periods'] = $periods;
|
||||
$where['b.periods'] = $periods;
|
||||
}
|
||||
$count = db::name('vs_room_pan_xlh_log')
|
||||
->alias('a')
|
||||
->join('vs_room_pan_xlh b', 'a.xlh_id = b.id', 'left')
|
||||
->join('user c', 'a.user_id = c.id', 'left')
|
||||
|
||||
->where($where)->count();
|
||||
$lists_data = db::name('vs_room_pan_xlh_log')
|
||||
|
||||
Reference in New Issue
Block a user