attributes = post_params(); $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->createStore()); } //获取门店信息 public function actionGetDeliveryStore() { $form = new WechatDeliveryForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->getDeliveryStore()); } //充值 public function actionStoreCharge() { $form = new WechatDeliveryForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->storeCharge()); } //退款 public function actionStoreRefund() { $form = new WechatDeliveryForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->storeRefund()); } //查询 public function actionBalanceQuery() { $form = new WechatDeliveryForm(); $form->attributes = post_params(); $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->balanceQuery()); } //同步流水 public function actionQueryFlow() { $form = new WechatDeliveryForm(); $form->attributes = post_params(); $form->flow_type = 1; $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->queryFlow()); } //获取流水 public function actionGetBalanceLog() { $form = new WechatDeliveryForm(); $form->attributes = get_params(); $form->store_id = get_store_id(); $form->md_id = get_md_id(); return $this->asJson($form->getBalanceLog()); } }