public function getFollowStateByFids($uid, $fids)
{
if (is_string($fids)) {
$fids = explode(',', $fids);
}
$fids = (array) $fids;
foreach ($fids as $key => $value) {
$fids[$key] = intval($value);
}
$_fids = implode(',', $fids);
$uid = intval($uid);
$follow_data = $this->where(" ( uid = '{$uid}' AND fid IN({$_fids}) ) OR ( uid IN({$_fids}) and fid = '{$uid}')")->findAll();
$follow_states = $this->_formatFollowState($uid, $fids, $follow_data);
return $follow_states[$uid];
}