AI智能回复搜索中,请稍后...
10 回答
if ($related_topics = $this->model('topic')->related_topics($topic_info['topic_id'])) { foreach ($related_topics AS $key => $val) { $related_topics_ids[$val['topic_id']] = $val['topic_id']; } }替换成:
$page_keywords = $topic_info['topic_title']; if ($related_topics = $this->model('topic')->related_topics($topic_info['topic_id'])) { foreach ($related_topics AS $key => $val) { $related_topics_ids[$val['topic_id']] = $val['topic_id']; $page_keywords = $val['topic_title']; } } TPL::set_meta('keywords', implode(',', $page_keywords)); TPL::set_meta('description', cjk_substr(str_replace("\r\n", ' ', strip_tags($topic_info['topic_description'])), 0, 128, 'UTF-8', '...'));下个版本更新
这家伙很懒,还没有设置简介