|
|
@@ -154,7 +154,7 @@ class PurchaseService extends BaseService
|
|
|
OrderClass::cancel($saleId);
|
|
|
$couponId = $purchase->couponId;
|
|
|
if (!empty($couponId)) {
|
|
|
- $coupon = ShopCoupon::getById($couponId, true);
|
|
|
+ $coupon = ShopCouponClass::getLockById($couponId);
|
|
|
ShopCouponClass::rollback($coupon);
|
|
|
}
|
|
|
}
|