store_id = $this->store_id; $form->scenario = $form::COUPON_LIST; $form->attributes = get_params(); return $this->asJson($form->couponList()); } public function actionSendCoupon(): \yii\web\response { $form = new CouponFrom(); $form->store_id = $this->store_id; $form->md_id = $this->md_id; $form->scenario = $form::COUPON_SEND; $form->attributes = post_params(); return $this->asJson($form->sendCoupon()); } }