$paid || $amount > $paid - $refunded || $amount > $balance) { throw new \InvalidArgumentException('退款金额超过充值单可退金额或账户可用余额'); } return $amount; } }