public function doFollow() { // 安全过滤 $fid = t($_POST['fid']); $res = model('Follow')->doFollow($this->mid, intval($fid)); $this->ajaxReturn($res, model('Follow')->getError(), false !== $res); }