找到include
的文件extend.func.php
function replaceurl($newurl)
{
$newurl=str_replace('src="/uploads/','src="'.$GLOBALS['cfg_basehost'].'/uploads/',$newurl);
return $newurl;
}
然后在詳情頁調(diào)用時候標(biāo)簽{dede:field.body/}
修改成{dede:field.body function='replaceurl(@me)'/}
倘若提示跨域問題
image.png
在請求頁面頭部加上下面這段代碼即可
<meta http-equiv="Access-Control-Allow-Origin" content="*">