|
|
@@ -248,10 +248,6 @@ class PurchaseService extends BaseService
|
|
|
$couponId = $info->couponId;
|
|
|
if (!empty($couponId)) {
|
|
|
$coupon = ShopCouponClass::getLockById($couponId);
|
|
|
- if ($coupon->take != ShopCouponClass::TAKE_UN) {
|
|
|
- Yii::info("优惠券已经被使用 orderId:{$info->id} couponId:{$couponId}");
|
|
|
- util::fail('优惠券已经被使用');
|
|
|
- }
|
|
|
$coupon->status = ShopCouponClass::STATUS_USED;
|
|
|
$coupon->save();
|
|
|
}
|