|
|
@@ -261,14 +261,13 @@ class RefundController extends BaseController
|
|
|
//走正常售后
|
|
|
HdRefundService::addRefund($post, $order);
|
|
|
}
|
|
|
- $transaction->commit();
|
|
|
|
|
|
//售后之后,累计消费、积分、成长值回退 -- 表:xhCustom -> buyAmount、integral、growth,xhHd -> expendAmount
|
|
|
$custom = CustomClass::getLockById($order->customId);
|
|
|
if (!empty($custom)) {
|
|
|
$custom->buyAmount = bcsub($custom->buyAmount, $post['price'], 2);
|
|
|
$custom->integral = $custom->integral - intval($post['price']);
|
|
|
- $custom->growth = $custom->growth - intval(post['price']);
|
|
|
+ $custom->growth = $custom->growth - intval($post['price']);
|
|
|
$memberData = CustomClass::getCustomExpenseLevel($custom->growth, $this->mainId); // 设置等级多处需要同步修改的,请搜索:getCustomExpenseLevel
|
|
|
$custom->member = $memberData['level'];
|
|
|
$custom->memberName = $memberData['name'];
|
|
|
@@ -290,6 +289,7 @@ class RefundController extends BaseController
|
|
|
hbClass::hbBack($updatedOrder);
|
|
|
}
|
|
|
}
|
|
|
+ $transaction->commit();
|
|
|
|
|
|
//制作单取消通知
|
|
|
$shopId = $this->shopId ?? 0;
|