优化:Give_Gift 表查询处理
This commit is contained in:
@@ -202,12 +202,12 @@ class Statistical extends adminApi
|
||||
// 1.系统调节 2.充值 3.提现 4.金币转增(送出) 5.每日任务奖励 6.充值返利 7.购买装扮
|
||||
// 8.礼盒奖励 9.房间补贴 10.购买礼物 11.收礼增加收益 12.工会补贴 13.转赠金币(接收) 14.收益兑换
|
||||
// 15.首充 16.天降好礼充值 17.退出工会扣款 18.房主收益 19.主持人收益 20.抢头条 21.公会长收益
|
||||
$where['change_type'] = ['in', [4,7,10,17,20]];
|
||||
$count = db::name('vs_user_money_log')
|
||||
$where['change_type'] = ['in', [4,7,10,17,20,24,25,32,42,50,56,59]];
|
||||
$count = db::name('user_coin_log')
|
||||
->where($where)
|
||||
->group('user_id')
|
||||
->count();
|
||||
$lists = db::name('vs_user_money_log')
|
||||
$lists = db::name('user_coin_log')
|
||||
->field('log_id,createtime,user_id,sum(change_value) as change_value')
|
||||
->where($where)
|
||||
->group('user_id')
|
||||
|
||||
Reference in New Issue
Block a user