Skip to content

Commit

Permalink
Merge pull request #16 from LittleJake/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
LittleJake authored Mar 30, 2024
2 parents e4d0129 + fa48d1a commit 507f6d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/common/lib/SystemMonitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static private function curlGet($url)
//设置获取的信息以文件流的形式返回,而不是直接输出。
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
//执行命令
$data = curl_exec($curl);

Expand Down
4 changes: 2 additions & 2 deletions application/common/lib/reCaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ private function post($data) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $this->recaptcha_url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,TRUE);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,2);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl,CURLOPT_TIMEOUT, 5);
Expand All @@ -31,4 +31,4 @@ private function post($data) {
curl_close($curl);
return json_decode($output,true);
}
}
}

0 comments on commit 507f6d4

Please sign in to comment.