diff --git a/WeChat/Contracts/DataArray.php b/WeChat/Contracts/DataArray.php index 5c56de6..c932c7d 100644 --- a/WeChat/Contracts/DataArray.php +++ b/WeChat/Contracts/DataArray.php @@ -17,7 +17,7 @@ namespace WeChat\Contracts; use ArrayAccess; /** - * Class Config + * Class DataArray * @package WeChat */ class DataArray implements ArrayAccess diff --git a/WeChat/Contracts/Tools.php b/WeChat/Contracts/Tools.php index aa35939..6beb76e 100644 --- a/WeChat/Contracts/Tools.php +++ b/WeChat/Contracts/Tools.php @@ -230,7 +230,7 @@ class Tools curl_setopt($curl, CURLOPT_SSLCERTTYPE, 'PEM'); curl_setopt($curl, CURLOPT_SSLCERT, $options['ssl_cer']); } else { - throw new InvalidArgumentException("Certificate files that do not exist. --- [{$options['ssl_cer']}]"); + throw new InvalidArgumentException("Certificate files that do not exist. --- [ssl_cer]"); } } // 证书文件设置 @@ -239,7 +239,7 @@ class Tools curl_setopt($curl, CURLOPT_SSLKEYTYPE, 'PEM'); curl_setopt($curl, CURLOPT_SSLKEY, $options['ssl_key']); } else { - throw new InvalidArgumentException("Certificate files that do not exist. --- [{$options['ssl_key']}]"); + throw new InvalidArgumentException("Certificate files that do not exist. --- [ssl_key]"); } } curl_setopt($curl, CURLOPT_URL, $url);