[ 'class' => LoginBehavior::className(), ], ]); } public function actionIndex() { if (\Yii::$app->request->isAjax) { $signingForm = new SigningForm(); $signingForm->attributes = \Yii::$app->request->get(); $data = $signingForm->getList(); return $this->responseHandler($data); } return $this->render('index'); } public function actionRefund() { if (\Yii::$app->request->isAjax) { $tongLianPay = new TongLianPay(); return $this->responseHandler($tongLianPay->refund(\Yii::$app->request->post('id'))); } } }