attributes = get_params(); $res = $form->search(); return $this->asJson($res); } /** * @return \yii\web\Response * 获取订单信息 */ public function actionGetPtInfo() { $form = new PtActivityOrderForm(); $form->attributes = get_params(); $res = $form->getPtInfo(); return $this->asJson($res); } /** * @return \yii\web\Response * 处理异常(退款) */ public function actionLoserHandle() { $form = new PtActivityOrderForm(); $pt_number = get_params('pt_number'); $res = $form->loserHandle($pt_number); return $this->asJson($res); } }