mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
下单使用的优惠券,退款的时候不退
This commit is contained in:
parent
49d341b75b
commit
ebdd7659d6
@ -433,18 +433,18 @@ class StoreOrderRefundServices extends BaseServices
|
||||
/** @var StoreOrderStatusServices $statusService */
|
||||
$statusService = app()->make(StoreOrderStatusServices::class);
|
||||
$res = true;
|
||||
//回退优惠卷 拆分子订单不退优惠券
|
||||
if (!$order['pid'] && $order['coupon_id'] && $order['coupon_price']) {
|
||||
/** @var StoreCouponUserServices $couponUserServices */
|
||||
$couponUserServices = app()->make(StoreCouponUserServices::class);
|
||||
$res = $couponUserServices->recoverCoupon((int)$order['coupon_id']);
|
||||
$statusService->save([
|
||||
'oid' => $order['id'],
|
||||
'change_type' => 'coupon_back',
|
||||
'change_message' => '商品退优惠券',
|
||||
'change_time' => time()
|
||||
]);
|
||||
}
|
||||
// //回退优惠卷 拆分子订单不退优惠券
|
||||
// if (!$order['pid'] && $order['coupon_id'] && $order['coupon_price']) {
|
||||
// /** @var StoreCouponUserServices $couponUserServices */
|
||||
// $couponUserServices = app()->make(StoreCouponUserServices::class);
|
||||
// $res = $couponUserServices->recoverCoupon((int)$order['coupon_id']);
|
||||
// $statusService->save([
|
||||
// 'oid' => $order['id'],
|
||||
// 'change_type' => 'coupon_back',
|
||||
// 'change_message' => '商品退优惠券',
|
||||
// 'change_time' => time()
|
||||
// ]);
|
||||
// }
|
||||
//回退积分
|
||||
$order = $this->regressionIntegral($order);
|
||||
$statusService->save([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user