|
@@ -711,12 +711,12 @@ class MemberService
|
|
if (mb_substr($item['goods_category'], 0, 7) == '自定义金额充值') {
|
|
if (mb_substr($item['goods_category'], 0, 7) == '自定义金额充值') {
|
|
$item['goods_category'] = '自定义金额充值';
|
|
$item['goods_category'] = '自定义金额充值';
|
|
}
|
|
}
|
|
- if (in_array($item['pay_category'], ['RECHARGE', 'REFUND', 'GIVE'])) {
|
|
|
|
|
|
+ if (in_array($item['pay_category'], ['RECHARGE', 'REFUND', 'GIVE','PARTNER'])) {
|
|
$item['balance_type'] = 'add';
|
|
$item['balance_type'] = 'add';
|
|
} else {
|
|
} else {
|
|
$item['balance_type'] = 'cut';
|
|
$item['balance_type'] = 'cut';
|
|
}
|
|
}
|
|
- if ($key == 0 && in_array($item['pay_category'], ['RECHARGE', 'REFUND', 'GIVE'])) {
|
|
|
|
|
|
+ if ($key == 0 && in_array($item['pay_category'], ['RECHARGE', 'REFUND', 'GIVE','PARTNER'])) {
|
|
if (!empty($item['pay_extend_json'])) {
|
|
if (!empty($item['pay_extend_json'])) {
|
|
$extendJson = json_decode($item['pay_extend_json'], true);
|
|
$extendJson = json_decode($item['pay_extend_json'], true);
|
|
if (!isset($extendJson['added_amount'])) {
|
|
if (!isset($extendJson['added_amount'])) {
|
|
@@ -748,7 +748,7 @@ class MemberService
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- if (in_array($item['pay_category'], ['RECHARGE', 'REFUND', 'GIVE'])) {
|
|
|
|
|
|
+ if (in_array($item['pay_category'], ['RECHARGE', 'REFUND', 'GIVE','PARTNER'])) {
|
|
if (!empty($item['pay_extend_json'])) {
|
|
if (!empty($item['pay_extend_json'])) {
|
|
$extendJson = json_decode($item['pay_extend_json'], true);
|
|
$extendJson = json_decode($item['pay_extend_json'], true);
|
|
if (isset($extendJson['added_amount']) && floatval($extendJson['added_amount']) > 0) {
|
|
if (isset($extendJson['added_amount']) && floatval($extendJson['added_amount']) > 0) {
|