From 06915620f265dd23bb15289b544d3f8c81ae74ca Mon Sep 17 00:00:00 2001 From: ctexthuang Date: Thu, 20 Mar 2025 15:32:13 +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 256bc87..0da14c1 100644 --- a/app/Service/ServiceTrait/Api/OrderTrait.php +++ b/app/Service/ServiceTrait/Api/OrderTrait.php @@ -277,7 +277,7 @@ trait OrderTrait */ protected function computeSundryPrice(): void { - $this->orderRes['sundry_num'] = match ($this->configCache->getConfigValueByKey(ConfigCode::SUNDRY_PRICE_COMPUTE_TYPE)) + $this->orderRes['sundry_num'] = match ((int)$this->configCache->getConfigValueByKey(ConfigCode::SUNDRY_PRICE_COMPUTE_TYPE)) { 1 => $this->orderType == OrderCode::ORDER_TYPE_OPTIONAL ? $this->copies : 0, 2 => $this->orderType == OrderCode::ORDER_TYPE_MEAL ? $this->copies : 0,