if ($visitor['name']) {
$_ = array(
'uin' => $visitor['uin'], 'name' => $visitor['name'], 'time' => $visitor['time'],
'yellow' => $visitor['yellow'], 'supervip' => $visitor['supervip'],
);
if (array_key_exists('portraitlabel', $visitor)) {
$_['portraitlabel'] = $visitor['portraitlabel'];
}
$visitor_list[] = $_;
if (array_key_exists('uins', $visitor)) {
foreach ($visitor['uins'] as $uins) {
$_ = array(
'uin' => $uins['uin'], 'name' => $uins['name'], 'time' => $uins['time'],
'yellow' => $uins['yellow'], 'supervip' => $uins['supervip'],
);
if (array_key_exists('portraitlabel', $uins)) {
$_['portraitlabel'] = $uins['portraitlabel'];
}
$visitor_list[] = $_;
}
}
}
}
}
}
return $visitor_list;
}
public static function checkVC($content)
{
preg_match_all('/.*?\((.*)\).*?/', $content, $match);