diff --git a/app/api/logic/user/UserLogic.php b/app/api/logic/user/UserLogic.php index 06475e6e8..0b38b2726 100644 --- a/app/api/logic/user/UserLogic.php +++ b/app/api/logic/user/UserLogic.php @@ -274,10 +274,10 @@ class UserLogic extends BaseLogic //礼品券明细 $query = UserSign::where(['uid'=>$uid]); if($params['mark'] == 1){ - $query->where('financial_pm',1); + $query->where('financial_pm',0); } if($params['mark'] == 2){ - $query->where('financial_pm',0); + $query->where('financial_pm',1); } $count = $query->count(); $data =$query @@ -289,10 +289,10 @@ class UserLogic extends BaseLogic //返还金明细 -todo back $query = VipFlow::with('store')->where(['user_id'=>$uid]); if($params['mark'] == 1){ - $query->where('status',1); + $query->where('status',0); } if($params['mark'] == 2){ - $query->where('status',0); + $query->where('status',1); } $count = $query->count(); $data = $query