model = new BoxModel(); } /** * @NodeAnotation(title="福袋列表") */ public function index () { if ($this->request->isAjax()) { if (input('selectFields')) { return $this->selectList(); } list($page, $limit, $where) = $this->buildTableParames(); list($count, $list) = BoxLogic::getList($page, $limit, $where, $this->sort); $data = [ 'code' => 0, 'msg' => '', 'count' => $count, 'data' => $list, ]; return json($data); } return $this->fetch(); } }