public function welcome_get_users_action() { if ($welcome_recommend_users = trim(rtrim(get_setting('welcome_recommend_users'), ','))) { $welcome_recommend_users = explode(',', $welcome_recommend_users); $users_list = $this->model('account')->get_users_list("user_name IN('" . implode("','", $welcome_recommend_users) . "')", 6, true, true, 'RAND()'); } if (!$users_list) { $users_list = $this->model('account')->get_activity_random_users(6); } if ($users_list) { foreach ($users_list as $key => $val) { $users_list[$key]['follow_check'] = $this->model('follow')->user_follow_check($this->user_id, $val['uid']); } } TPL::assign('users_list', $users_list); TPL::output('account/ajax/welcome_get_users'); }每次“换一批”,都会获取$welcome_recommend_users,所以根本就不能换一批。 不知道是不是我理解错了,请教大家.
这家伙很懒,还没有设置简介