public function get_focus_users_by_topic($topic_id, $limit = 10) { if ($uids = $this->query_all("SELECT DISTINCT uid FROM " . $this->get_table('topic_focus') . " WHERE topic_id = " . intval($topic_id), $limit)) { return $this->model('account')->get_user_info_by_uids(fetch_array_value($uids, 'uid')); } }修改为
public function get_focus_users_by_topic($topic_id, $limit = 10) { $user_list = array(); $uids = $this->query_all("SELECT DISTINCT uid FROM " . $this->get_table('topic_focus') . " WHERE topic_id = " . intval($topic_id), $limit); if ($uids) { $user_list_query = $this->model('account')->get_user_info_by_uids(fetch_array_value($uids, 'uid')); if ($user_list_query) { foreach ($user_list_query AS $user_info) { $user_list[$user_info['uid']]['uid'] = $user_info['uid']; $user_list[$user_info['uid']]['user_name'] = $user_info['user_name']; $user_list[$user_info['uid']]['avatar_file'] = get_avatar_url($user_info['uid'], 'mid'); $user_list[$user_info['uid']]['url'] = get_js_url('/people/' . $user_info['url_token']); } } } return $user_list; }
AI智能回复搜索中,请稍后...
这家伙很懒,还没有设置简介