用户佣金

This commit is contained in:
liu 2024-03-22 11:09:43 +08:00
parent 46141c5d41
commit 618f9c3831

View File

@ -200,7 +200,12 @@ class UserBillDao extends BaseDao
return UserBill::getDB()
->when(isset($where['now_money']) && in_array($where['now_money'], [0, 1, 2]), function ($query) use ($where) {
if ($where['now_money'] == 0)
$query->where('category', 'now_money')->whereIn('type', ['pay_product', 'recharge', 'sys_inc_money', 'sys_dec_money', 'brokerage', 'presell', 'refund']);
$query->whereIn('type', ['pay_product', 'recharge', 'sys_inc_money', 'sys_dec_money', 'brokerage', 'presell', 'refund', 'zhibo_reward_inc', 'zhibo_reward_dec','order_one'])
->where(function ($query) {
$query->where('category', 'now_money')
->whereOr('category', 'brokerage');
});
else if ($where['now_money'] == 1)
$query->where('category', 'now_money')->whereIn('type', ['pay_product', 'sys_dec_money', 'presell']);
else if ($where['now_money'] == 2)