|
@@ -70,7 +70,8 @@ class Service
|
|
|
if ($isWechat || $config['scanpay']) {
|
|
|
Session::set("alipayorderdata", $params);
|
|
|
$url = addon_url('epay/api/alipay', [], true, true);
|
|
|
- return RedirectResponse::create($url);
|
|
|
+// return RedirectResponse::create($url);
|
|
|
+ return (new Response($url));
|
|
|
} elseif ($request->isMobile()) {
|
|
|
$method = 'wap';
|
|
|
}
|
|
@@ -124,7 +125,8 @@ class Service
|
|
|
} else {
|
|
|
Session::set("wechatorderdata", $params);
|
|
|
$url = addon_url('epay/api/wechat', [], true, true);
|
|
|
- return RedirectResponse::create($url);
|
|
|
+ //return RedirectResponse::create($url);
|
|
|
+ return (new Response($url));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -178,7 +180,8 @@ class Service
|
|
|
|
|
|
//使用重写的Response类、RedirectResponse、Collection类
|
|
|
if ($result instanceof \Symfony\Component\HttpFoundation\RedirectResponse) {
|
|
|
- $result = RedirectResponse::create($result->getTargetUrl());
|
|
|
+// $result = RedirectResponse::create($result->getTargetUrl());
|
|
|
+ $result = (new Response($result->getTargetUrl()));
|
|
|
} elseif ($result instanceof \Symfony\Component\HttpFoundation\Response) {
|
|
|
$result = Response::create($result->getContent());
|
|
|
} elseif ($result instanceof \Yansongda\Supports\Collection) {
|