notify(); if (!$response) exit; $response->send(); exit; } /** * @Post("/wxpay/notify", name="home.wxpay.notify") */ public function wxpayNotifyAction() { $wxpayService = new WxpayService(); $response = $wxpayService->notify(); if (!$response) exit; $response->send(); exit; } /** * @Post("/alipay/status", name="home.alipay.status") */ public function alipayStatusAction() { $sn = $this->request->getPost('sn'); $alipayService = new AlipayService(); $status = $alipayService->status($sn); return $this->jsonSuccess(['status' => $status]); } /** * @Post("/wxpay/status", name="home.wxpay.status") */ public function wxpayStatusAction() { $sn = $this->request->getPost('sn'); $wxpayService = new WxpayService(); $status = $wxpayService->status($sn); return $this->jsonSuccess(['status' => $status]); } }