From 226c8f6b8c35ff537cc648ec832d6e2e7684892a Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Fri, 5 Jul 2024 19:08:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(UserLogic):=20=E6=B7=BB=E5=8A=A0'user=5Fba?= =?UTF-8?q?lance=5Frecharge=5Frefund'=E5=88=B0=E8=B5=84=E9=87=91=E6=B5=81?= =?UTF-8?q?=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/user/UserLogic.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/api/logic/user/UserLogic.php b/app/api/logic/user/UserLogic.php index c1aed62f..ef5a9590 100644 --- a/app/api/logic/user/UserLogic.php +++ b/app/api/logic/user/UserLogic.php @@ -257,13 +257,13 @@ class UserLogic extends BaseLogic switch ($params['type']){ 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) ->whereIn('category', $categories); - if($params['mark'] == 1){ + if(isset($params['mark'])&&$params['mark'] == 1){ $query->where('type','in'); } - if($params['mark'] == 2){ + if(isset($params['mark'])&&$params['mark'] == 2){ $query->where('type','out'); } $count = $query->count();