diff --git a/app/Service/PaymentService.php b/app/Service/PaymentService.php index c108f48..fa6aca2 100644 --- a/app/Service/PaymentService.php +++ b/app/Service/PaymentService.php @@ -341,7 +341,7 @@ class PaymentService extends AbstractService throw new BusinessException('用户ID不能为空'); } - if (isset($reqData['amount']) { + if (isset($reqData['amount'])) { if (!is_numeric($reqData['amount'])) { throw new BusinessException('请输入金额'); }