在Ucenter目录找到 uc_server/model/misc.php 这个文件;
用DreamWeaver在misc.php中查找以下代码:
$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); }
保存并替换该misc.php文件,然后在Ucenter后台更新缓存,大功告成。
" />