改进 支付

This commit is contained in:
iVampireSP.com 2022-09-06 15:10:20 +08:00
parent 313a5a236f
commit 9eeeac6cd3
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
3 changed files with 23 additions and 3 deletions

View File

@ -109,9 +109,9 @@ public function return(Request $request)
} }
if ($this->checkAndCharge($request->out_trade_no, $balance)) { if ($this->checkAndCharge($request->out_trade_no, $balance)) {
return redirect()->route('index')->with('success', '支付成功,非常感谢。'); return view('pay_return')->with('success', '支付成功,非常感谢。');
} else { } else {
return redirect()->route('index')->with('error', '无法完成支付,请联系我们。'); return view('pay_return')->with('error', '无法完成支付,请联系我们。');
} }
} }

View File

@ -7,7 +7,6 @@
<body> <body>
{!! $html !!} {!! $html !!}
{{--{{ $html }}--}}
</body> </body>
</html> </html>

View File

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>支付结果</title>
</head>
<body>
@if (session('success'))
<p style="color:green">{{ session('success') }}</p>
@endif
@if (session('error'))
<p style="color:red">{{ session('error') }}</p>
@endif
<p>您现在可以关闭页面并继续刚才的操作了。</p>
</body>
</html>