Copyright @ 2015-2020 織夢園 版權所有 Power by DedeCms
魯ICP備15039853號-1

模板標簽 TAG標簽 網站地圖 XML地圖 今日更新 返回頂部

織夢采集https時出錯,織夢二次開發,織夢采集https協議時卻生成了http協議請求
需要修改腳本
1、找到文件 /include/dedehtml2.class.php,增加變量 $Scheme;,如下圖:
2、在構造函數中增加 $this->Scheme = 'http://'; ,如下圖:
3、在SetSource()函數內增加 $this->Scheme = $urls['scheme'] . '://'; ,如下圖:
4、在FillUrl()函數內的末尾處,增加紅框內的代碼,如下圖:
源碼如下:
else if( strtolower(substr($surl,0,8))=='https://' ) { $okurl = preg_replace('/^https:///i', '', $surl); } |
5、在FillUrl()函數內的***末尾把原來的'http://'.$okurl;修改為$this->Scheme . $okurl;