加幸运币统计字段-修改
This commit is contained in:
@@ -542,6 +542,7 @@ class Guild extends adminApi
|
||||
$rum_lists[$k]['add_time'] = date('Y-m-d H:i:s',$v['createtime']);
|
||||
$total_consumption += $rum_lists[$k]['consumption'];
|
||||
//幸运币统计
|
||||
$where_lucky = [];
|
||||
if($search_stime !== ''){
|
||||
$where_lucky['createtime'] = ['>=', strtotime($search_stime)];
|
||||
}
|
||||
|
||||
@@ -763,7 +763,7 @@ class Room extends adminApi
|
||||
}
|
||||
}
|
||||
//幸运流水总计
|
||||
$total_lucky_coin = db::name('vs_room_luck_value')->where('room_id',$room_id)->where($where)->sum('luck_value');
|
||||
$total_lucky_coin = db::name('vs_room_luck_value')->alias('a')->where('room_id',$room_id)->where($where)->sum('luck_value');
|
||||
$return_data = [
|
||||
'page' =>$page,
|
||||
'page_limit' => $page_limit,
|
||||
|
||||
@@ -271,6 +271,7 @@ class Statistical extends adminApi
|
||||
$label = db::name('vs_room')->where('id', $value['from_id'])->value('label_id');
|
||||
$lists[$key]['label'] = db::name('vs_room_label')->where('id', $label)->value('label_name');
|
||||
//幸运币统计
|
||||
$where_lucky = [];
|
||||
if($begin_time !== ''){
|
||||
$where_lucky['createtime'] = ['>=', strtotime($begin_time)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user