request->isGet){ throw new \ErrorException('NOT IS GET!'); } $this->success('ok', DefaultService::getInfo( $this->mall_id, $this->user )); }catch (\ErrorException $errorException){ $this->error($errorException->getMessage()); }catch (\Exception $exception){ $this->error($exception->getMessage()); } } /** * */ public function actionLogList() { try { if(!\Yii::$app->request->isGet){ throw new \ErrorException('NOT IS GET!'); } $page = \Yii::$app->request->get('page', 1); $limit = \Yii::$app->request->get('limit', 10); $capitalType = \Yii::$app->request->get('capital_type', ''); $this->success('ok', DefaultService::getLogList( $this->mall_id, $this->user, $this->from_type, $capitalType, $page, $limit )); }catch (\ErrorException $errorException){ $this->error($errorException->getMessage()); }catch (\Exception $exception){ $this->error($exception->getMessage()); } } }