/** * 删除动态 * @return <type> */ public function destroy($id = NULL) { if (!$id) { $this->send_response(400, NULL, '400:动态ID为空'); } $doc = $this->feedModel->findFeed($id); if (empty($doc)) { $this->send_response(404, NULL, '动态不存在'); } if ($doc['owner_uid'] == $this->uid) { $content = $this->feedModel->delFeed($id); $content_md5 = md5($this->uid . '_' . $content); $count = Cache::instance()->delete($content_md5); $this->send_response(200); } $this->send_response(400, NULL, '无权限删除'); }