|
@@ -146,15 +146,19 @@ class MemberService
|
|
|
} else {
|
|
|
$item['balance_type'] = 'cut';
|
|
|
}
|
|
|
- dump($item);
|
|
|
+ dump(1);
|
|
|
if ($key == 0 && $item['pay_category'] == 'RECHARGE') {
|
|
|
+ dump(2);
|
|
|
if (!empty($item['pay_extend_json'])) {
|
|
|
+ dump(3);
|
|
|
$extendJson = json_decode($item['pay_extend_json'], true);
|
|
|
// 计划任务还没跑
|
|
|
if ($item['pay_category'] == 'RECHARGE' && (!isset($extendJson['notify']) || $extendJson['notify'] != 'success')) {
|
|
|
continue;
|
|
|
}
|
|
|
+ dump(4);
|
|
|
if (isset($extendJson['added_amount']) && $extendJson['added_amount'] > 0) {
|
|
|
+ dump(5);
|
|
|
$data[] = [
|
|
|
'join_pay_member_id' => $item['join_pay_member_id'],
|
|
|
'pay_addtimes' => $item['pay_addtimes'],
|
|
@@ -167,6 +171,7 @@ class MemberService
|
|
|
$balance = $balance - $extendJson['added_amount'];
|
|
|
}
|
|
|
|
|
|
+ dump(6);
|
|
|
$item['balance'] = number_format($balance, 2, '.', '');
|
|
|
$balance = $balance - $item['pay_amount'];
|
|
|
$data[] = $item;
|