prepare('SELECT * FROM categories WHERE key = ? LIMIT 1'); $st->execute([$catKey]); $cat = $st->fetch(); if (!$cat) { http_response_code(404); layout_head('导航页不存在'); echo '导航分类不存在,请返回首页。'; layout_theme_fab(); layout_footer(); echo '