单页修改

This commit is contained in:
2025-10-27 15:49:19 +08:00
parent 16933674ca
commit 4b10bf3cba

View File

@@ -33,7 +33,12 @@ class Page extends controller
{ {
$id = input('id', ''); $id = input('id', '');
$reslut = model('Page')->get_page($id); $reslut = model('Page')->get_page($id);
$html = $reslut['content'] ? $reslut['content'] : ''; if($reslut){
$html = $reslut['content'] ??'';
}else{
$html = '';
}
//解析html //解析html
$html = htmlspecialchars_decode($html); $html = htmlspecialchars_decode($html);
return $html; return $html;