From 3cf870d1f7997fc7152e9a4b87dd376cf1a39dc4 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Thu, 20 Mar 2025 17:52:09 +0800 Subject: [PATCH] feat : coupon --- app/Service/ServiceTrait/Api/OrderTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/ServiceTrait/Api/OrderTrait.php b/app/Service/ServiceTrait/Api/OrderTrait.php index 676d80d..b486fa4 100644 --- a/app/Service/ServiceTrait/Api/OrderTrait.php +++ b/app/Service/ServiceTrait/Api/OrderTrait.php @@ -385,7 +385,7 @@ trait OrderTrait if (in_array($couponInfo->status,[CouponCode::COUPON_STATUS_USED,CouponCode::COUPON_STATUS_EXPIRE])) throw new ErrException('优惠券已经被使用'); $couponTemplateInfo = $this->couponTemplateModel->getInfoById($couponInfo->coupon_template_id); - if (empty($couponTempleteInfo)) throw new ErrException('优惠券信息错误'); + if (empty($couponTemplateInfo)) throw new ErrException('优惠券信息错误'); $this->couponId = $couponInfo->id; $this->orderRes['coupon_info'] = [