/** * 查询方法 */ public function query() { $datas = ComMainModel::paginate($this->limit); $datas->limit = $this->limit; return $datas; }