From 0dc49e5c3cb1be2d2dd1eb917d0ea7dcd983bd17 Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Thu, 20 Mar 2025 15:48:44 +0800 Subject: [PATCH] feat : config --- 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 c72abf8..aa2db58 100644 --- a/app/Service/ServiceTrait/Api/OrderTrait.php +++ b/app/Service/ServiceTrait/Api/OrderTrait.php @@ -351,7 +351,7 @@ trait OrderTrait */ protected function reloadCompute(): void { - if ($this->couponId <= 0 || empty($this->orderRes['coupon_info']) || $this->orderRes['coupon_id'] <= 0) return; + if ($this->couponId <= 0 || empty($this->orderRes['coupon']) || $this->orderRes['coupon_id'] <= 0) return; if ($this->orderRes['coupon_info']['amount'] <= 0 && $this->orderRes['coupon_info']['coupon_type'] != CouponCode::COUPON_TYPE_INSTANT_REDUCTION) { $orderMaxPrice = max(array_column($this->orderRes['good'],'price'));