diff --git a/app/Services/OrderService.php b/app/Services/OrderService.php index 7c43a5b9..717e1f87 100644 --- a/app/Services/OrderService.php +++ b/app/Services/OrderService.php @@ -325,7 +325,7 @@ public function formatChargeInput(array $requestData) { $otherIpuAll = $this->productService->formatChargeInput($this->product['other_ipu']); foreach ($otherIpuAll as $value) { - if ($value['rule'] && empty($data[$value['field']])) { + if ($value['rule'] && empty($requestData[$value['field']])) { throw new AppException("{$value['desc']}" . __('prompt.charge_not_null')); } $this->orderInfo['other_ipu'] .= $value['desc'].':'.$requestData[$value['field']].PHP_EOL;