|
@@ -731,7 +731,7 @@ class MemberService
|
|
'join_pay_member_id' => $item['join_pay_member_id'],
|
|
'join_pay_member_id' => $item['join_pay_member_id'],
|
|
'pay_addtimes' => $item['pay_addtimes'],
|
|
'pay_addtimes' => $item['pay_addtimes'],
|
|
'pay_amount' => $extendJson['added_amount'],
|
|
'pay_amount' => $extendJson['added_amount'],
|
|
- 'pay_category' => 'ADDED',
|
|
|
|
|
|
+ 'pay_category' => $item['pay_category'] == 'GIVE' ? 'GIVE' : 'ADDED',
|
|
'balance' => number_format($balance, 2, '.', ''),
|
|
'balance' => number_format($balance, 2, '.', ''),
|
|
'balance_type' => 'add',
|
|
'balance_type' => 'add',
|
|
];
|
|
];
|
|
@@ -741,7 +741,10 @@ class MemberService
|
|
|
|
|
|
$item['balance'] = number_format($balance, 2, '.', '');
|
|
$item['balance'] = number_format($balance, 2, '.', '');
|
|
$balance = $balance - $item['pay_amount'];
|
|
$balance = $balance - $item['pay_amount'];
|
|
- $data[] = $item;
|
|
|
|
|
|
+ if ($item['pay_category'] != 'GIVE'){
|
|
|
|
+ $data[] = $item;
|
|
|
|
+ }
|
|
|
|
+
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -753,7 +756,7 @@ class MemberService
|
|
'join_pay_member_id' => $item['join_pay_member_id'],
|
|
'join_pay_member_id' => $item['join_pay_member_id'],
|
|
'pay_addtimes' => $item['pay_addtimes'],
|
|
'pay_addtimes' => $item['pay_addtimes'],
|
|
'pay_amount' => $extendJson['added_amount'],
|
|
'pay_amount' => $extendJson['added_amount'],
|
|
- 'pay_category' => 'ADDED',
|
|
|
|
|
|
+ 'pay_category' => $item['pay_category'] == 'GIVE' ? 'GIVE' : 'ADDED',
|
|
'balance' => number_format($balance, 2, '.', ''),
|
|
'balance' => number_format($balance, 2, '.', ''),
|
|
'balance_type' => 'add',
|
|
'balance_type' => 'add',
|
|
];
|
|
];
|
|
@@ -767,7 +770,9 @@ class MemberService
|
|
$balance = $balance + $item['pay_amount'];
|
|
$balance = $balance + $item['pay_amount'];
|
|
}
|
|
}
|
|
|
|
|
|
- $data[] = $item;
|
|
|
|
|
|
+ if ($item['pay_category'] != 'GIVE') {
|
|
|
|
+ $data[] = $item;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
$total = count($data);
|
|
$total = count($data);
|