|
@@ -433,18 +433,18 @@ class StoreOrderRefundServices extends BaseServices
|
|
|
/** @var StoreOrderStatusServices $statusService */
|
|
/** @var StoreOrderStatusServices $statusService */
|
|
|
$statusService = app()->make(StoreOrderStatusServices::class);
|
|
$statusService = app()->make(StoreOrderStatusServices::class);
|
|
|
$res = true;
|
|
$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);
|
|
$order = $this->regressionIntegral($order);
|
|
|
$statusService->save([
|
|
$statusService->save([
|