public function getComment() { $input = I('post.'); $comment = new CommentModel(); $data = $comment->getComment(['date_id' => $input['date_id'], 'page' => $input['page']]); $this->ajaxReturn(['status' => 0, 'info' => '成功', 'data' => $data]); }
public function __construct() { parent::__construct(); $this->comments = new MapOf(function ($data) { return new CommentModel(); }); $this->score = 0; $this->tags = new ArrayOf(); $this->isToBeExported = false; }