feat(UserLogic): 添加'user_balance_recharge_refund'到资金流类别

This commit is contained in:
mkm 2024-07-05 19:08:16 +08:00
parent ac2c632fbb
commit 226c8f6b8c

View File

@ -257,13 +257,13 @@ class UserLogic extends BaseLogic
switch ($params['type']){ switch ($params['type']){
case 1: case 1:
//采购款明细 //采购款明细
$categories = ['user_balance_recharge', 'user_order_purchase_pay','system_purchase_add']; $categories = ['user_balance_recharge', 'user_order_purchase_pay','system_purchase_add','user_balance_recharge_refund'];
$query = CapitalFlow::where('uid', $uid) $query = CapitalFlow::where('uid', $uid)
->whereIn('category', $categories); ->whereIn('category', $categories);
if($params['mark'] == 1){ if(isset($params['mark'])&&$params['mark'] == 1){
$query->where('type','in'); $query->where('type','in');
} }
if($params['mark'] == 2){ if(isset($params['mark'])&&$params['mark'] == 2){
$query->where('type','out'); $query->where('type','out');
} }
$count = $query->count(); $count = $query->count();