/** * 动态统计 * @return <type> */ public function new_count() { $start = $this->input->get('modified_at', 0); if (empty($start)) { $this->send_response(400, NULL, '400:modified_at为空'); } $data = $this->feedModel->getFriendFeedNew($this->uid, $start, 0, 0, 1000); if ($data['code'] == 404) { $num = 0; } else { $num = $data['result']['count']; } $this->send_response(200, array('statuses_count' => $num)); }