diff --git a/WeChat/Pay.php b/WeChat/Pay.php index 5b4c6df..fddcf1c 100644 --- a/WeChat/Pay.php +++ b/WeChat/Pay.php @@ -300,7 +300,7 @@ class Pay $option = []; if ($isCert) { foreach (['ssl_cer', 'ssl_key'] as $key) { - if (empty($options[$key])) { + if (empty($option[$key])) { throw new InvalidArgumentException("Missing Config -- [{$key}]", '0'); } }