改进 支付
This commit is contained in:
parent
313a5a236f
commit
9eeeac6cd3
@ -109,9 +109,9 @@ public function return(Request $request)
|
||||
}
|
||||
|
||||
if ($this->checkAndCharge($request->out_trade_no, $balance)) {
|
||||
return redirect()->route('index')->with('success', '支付成功,非常感谢。');
|
||||
return view('pay_return')->with('success', '支付成功,非常感谢。');
|
||||
} else {
|
||||
return redirect()->route('index')->with('error', '无法完成支付,请联系我们。');
|
||||
return view('pay_return')->with('error', '无法完成支付,请联系我们。');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
|
||||
<body>
|
||||
{!! $html !!}
|
||||
{{--{{ $html }}--}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
21
resources/views/pay_return.blade.php
Normal file
21
resources/views/pay_return.blade.php
Normal 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>
|
Loading…
Reference in New Issue
Block a user