AI智能回复搜索中,请稍后...
1 回答
if ($today_topics = rtrim(get_setting('today_topics'), ',')) { if (!$today_topic = AWS_APP::cache()->get('square_today_topic_' . md5($today_topics))) { if ($today_topic = $this->model('topic')->get_topic_by_title(array_random(explode(',', $today_topics)))) { $today_topic['best_answer_users'] = $this->model('topic')->get_best_answer_users_by_topic_id($today_topic['topic_id'], 5); $today_topic['questions_list'] = $this->model('posts')->get_posts_list('question', 1, 3, 'new', explode(',', $today_topic['topic_id'])); AWS_APP::cache()->set('square_today_topic_' . md5($today_topics), $today_topic, (strtotime('Tomorrow') - time())); } } TPL::assign('today_topic', $today_topic); }