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,