feat : config

This commit is contained in:
2025-03-20 15:48:44 +08:00
parent df6abde360
commit 0dc49e5c3c

View File

@@ -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'));