AI智能回复搜索中,请稍后...
1 回答
public function get_visitor_list($uid, $limit = 10, $order = 'add_time DESC') { if (! $uid) { return false; } if ($result = AWS_APP::cache()->get('get_visitor_list_' . md5($uid . $limit . $order))) { return $result; } if ($result = $this->fetch_all('people_visitor', 'uid = ' . intval($uid), $order, $limit)) { foreach ($result AS $key => $val) { $result[$key]['url_token'] = urlencode($val['ausername']); } AWS_APP::cache()->set('get_visitor_list_' . md5($uid . $limit . $order), $result, get_setting('cache_level_normal')); } return $result; }