service = new AgentService( ['mall_id' => $this->mall_id] ); } /** * 设置页面 * * @return void */ public function actionIndex() { if ($this->request->isAjax) { return $this->success( 'ok', $this->service->getPageList( array_merge( $this->request->post(), $this->request->get() ) ), ApiStatusEnum::CODE_SUCCESS, 0 ); } return $this->render('index'); } }