public function actionIndex() { $params = $this->getQuery(); if (empty($params['memberId'])) { throw new BadRequestHttpException(Yii::t('common', 'parameters_missing')); } $accountId = $this->getAccountId(); $params['status'] = Order::ORDER_STATUS_FINISHED; return Order::search($params, $accountId); }
public function actionIndex() { $params = $this->getQuery(); $accountId = $this->getAccountId(); return Order::search($params, $accountId); }