打开uc_server\model\misc.php第68行找到
- $port = !empty($matches['port']) ? $matches['port'] : 80;
复制代码
在该句代码下方插入
- if(substr($url,0,5)=='https'){
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- if($post){
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- }
- if($cookie){
- curl_setopt($ch, CURLOPT_COOKIE, $cookie);
- }
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
- return curl_exec($ch);
- }
复制代码
通信成功! |