public function is_follow($weiba_id) { $weiba = M('weiba_follow')->where('weiba_id=' . $weiba_id . ' and follower_uid=' . $this->mid)->find(); if ($weiba) { return true; } else { return false; } }