[ 'class' => LoginBehavior::className(), 'ignore' => [ // 'api/order-count/index' ] ] ]); } /** * hidedoc * @catalog 统计门店还车订单 * @title 统计门店还车订单 * @description 本接口提供统计门店还车订单 * @method get * @url /api/order-count/index * @param store_id 必选 int 门店ID * @return {"code":0,"msg":"ok","data":{"num":"6"}} * @return_param name type desc * @remark * */ public function actionIndex() { $form = new OrderCountForm(); $store_id = \Yii::$app->request->get('store_id'); $form->store_id = $store_id; $form->user_type = \Yii::$app->user->identity->type; $data = $form->search(); return $this->responseHandler($data); } }