单页修改
This commit is contained in:
@@ -33,7 +33,12 @@ class Page extends controller
|
||||
{
|
||||
$id = input('id', '');
|
||||
$reslut = model('Page')->get_page($id);
|
||||
$html = $reslut['content'] ? $reslut['content'] : '';
|
||||
if($reslut){
|
||||
$html = $reslut['content'] ??'';
|
||||
}else{
|
||||
$html = '';
|
||||
}
|
||||
|
||||
//解析html
|
||||
$html = htmlspecialchars_decode($html);
|
||||
return $html;
|
||||
|
||||
Reference in New Issue
Block a user