mirror of
https://github.com/GrandDuke1106/MCBBSAutoSignIn.git
synced 2024-09-27 06:16:01 -04:00
修改ssl
This commit is contained in:
parent
26c8c69fac
commit
5c4b40f00a
2
Sign.php
2
Sign.php
@ -30,6 +30,7 @@ function passGeeTest(string $api_key, string $cookie) : array|bool {
|
|||||||
|
|
||||||
curl_setopt($ch, CURLOPT_URL, 'https://www.mcbbs.net/plugin.php?id=geetest3&model=start&t=1667578418195');
|
curl_setopt($ch, CURLOPT_URL, 'https://www.mcbbs.net/plugin.php?id=geetest3&model=start&t=1667578418195');
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||||
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
|
||||||
|
|
||||||
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
|
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
|
||||||
@ -179,6 +180,7 @@ function sc_send( $text , $desp = '' , $key = '[SENDKEY]' )
|
|||||||
|
|
||||||
curl_setopt($ch, CURLOPT_URL, 'https://sctapi.ftqq.com/'.$key.'.send');
|
curl_setopt($ch, CURLOPT_URL, 'https://sctapi.ftqq.com/'.$key.'.send');
|
||||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,false);
|
||||||
curl_setopt($ch, CURLOPT_HEADER, 0);
|
curl_setopt($ch, CURLOPT_HEADER, 0);
|
||||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
|
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30);
|
||||||
curl_setopt($ch, CURLOPT_POST, 1);
|
curl_setopt($ch, CURLOPT_POST, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user