[ 'class' => LoginBehavior::className(), ], ]); } public function actionIndex() { if(\Yii::$app->request->isAjax){ $form = new CommonCashListForm(); $form->attributes = \Yii::$app->request->get(); $form->cx_mch_id = $this->cx_mch_id; $data = $form->search(); return $this->responseHandler($data); } return $this->render('index'); } public function actionSetting() { $form = new CommonCashSettingForm(); if(\Yii::$app->request->isPost){ $form->scenario = 'edit'; $form->attributes = \Yii::$app->request->post(); $form->cx_mch_id = $this->cx_mch_id; $form->scene = Balance::$cxBalanceSceneUserWallet; $data = $form->save(); return $this->responseHandler($data); } $form->cx_mch_id = $this->cx_mch_id; $form->scene = Balance::$cxBalanceSceneUserWallet; $model = $form->search(); return $this->render('setting',[ 'model' => $model, 'title' => '钱包提现设置', 'post_api' => \Yii::$app->urlManager->createUrl(['/admin/cash/setting']) ]); } public function actionReview() { $form = new CommonCashActionForm(); $form->scenario = 'review'; $form->attributes = \Yii::$app->request->post(); $form->cx_mch_id = $this->cx_mch_id; $data = $form->review(); return $this->responseHandler($data); } public function actionTransfer() { $form = new CommonCashActionForm(); $form->attributes = \Yii::$app->request->post(); $form->cx_mch_id = $this->cx_mch_id; $data = $form->transfer(); return $this->responseHandler($data); } public function actionDelete() { $form = new CommonCashActionForm(); $form->attributes = \Yii::$app->request->post(); $form->cx_mch_id = $this->cx_mch_id; $data = $form->delete(); return $this->responseHandler($data); } }