render($this->action->id); } /** * 导入 * * @return void */ public function actionImport() { if ($this->request->isAjax) { $service = new CategorysService(['mall_id' => $this->mall_id]); return $service->import() ? $this->success('ok') : $this->error($service->error); } } }