response->setStatusCode(404); return $this->response; } $storageService = new StorageService(); $location = $storageService->getCiImageUrl($image->path); $this->response->redirect($location); } /** * @Get("/qrcode/img", name="web.qrcode_img") */ public function qrcodeImageAction() { $text = $this->request->getQuery('text'); $level = $this->request->getQuery('level', 'int', 0); $size = $this->request->getQuery('size', 'int', 5); $url = urldecode($text); PHPQRcode::png($url, false, $level, $size); $this->response->send(); exit; } /** * @Post("/token/refresh", name="web.refresh_token") */ public function refreshTokenAction() { $this->checkCsrfToken(); $service = new CsrfTokenService(); $token = $service->getToken(); return $this->jsonSuccess(['token' => $token]); } /** * @Post("/alipay/notify", name="web.alipay_notify") */ public function alipayNotifyAction() { $alipayService = new AlipayService(); $response = $alipayService->notify(); if (!$response) exit; $response->send(); exit; } /** * @Post("/wxpay/notify", name="web.wxpay_notify") */ public function wxpayNotifyAction() { $wxpayService = new WxpayService(); $response = $wxpayService->notify(); if (!$response) exit; $response->send(); exit; } /** * @Post("/live/notify", name="web.live_notify") */ public function liveNotifyAction() { } }