|
@@ -645,7 +645,7 @@ class WechatService
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); // 生产环境建议验证SSL
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); // 生产环境建议验证SSL
|
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
|
|
|
- @file_put_contents("quanju3.txt", $ch . "-访问接口\r\n", 8);
|
|
|
|
|
|
|
+ @file_put_contents("quanju3.txt", $url . "-访问接口\r\n", 8);
|
|
|
$response = curl_exec($ch);
|
|
$response = curl_exec($ch);
|
|
|
// if (curl_errno($ch)) {
|
|
// if (curl_errno($ch)) {
|
|
|
// echo 'CURL Error: ' . curl_error($ch);
|
|
// echo 'CURL Error: ' . curl_error($ch);
|