[ 'class' => LoginBehavior::className(), ], ]); } public function actionIndex() { if(\Yii::$app->request->isAjax){ $form = new CommonIntegralLogListForm(); $form->attributes = \Yii::$app->request->get(); $form->cx_mch_id = $this->cx_mch_id; $form->scene = Integral::$cxIntegralSceneUserIntegralWallet; $data = $form->search(); return $this->responseHandler($data); } return $this->render('index'); } //积分充值 public function actionRecharge() { if(!\Yii::$app->request->isPost){ $data = $this->invaildRequest(); return $this->responseHandler($data); } $form = new CommonRechargeIntegralActionForm(); $form->scenario = 'recharge'; $form->attributes = \Yii::$app->request->post(); $form->cx_mch_id = $this->cx_mch_id; $form->scene = Integral::$cxIntegralSceneUserIntegralWallet; $nickname = \Yii::$app->admin->identity->user->nickname; $username = \Yii::$app->admin->identity->user->username; $form->operator_name = "{$nickname}[$username]"; $data = $form->recharge(); return $this->responseHandler($data); } }