修改 状态

This commit is contained in:
iVampireSP.com 2022-11-16 21:25:42 +08:00
parent 1ae301a78e
commit ac48b764a4
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
2 changed files with 8 additions and 4 deletions

View File

@ -109,7 +109,7 @@ public function notify(Request $request): View|JsonResponse
// 检测订单是否已支付
if ($balance->paid_at !== null) {
// return $this->success('订单已支付');
return view('balances.process')->with('success', '我们成功处理了您的订单。');
return view('balances.process', compact('balance'));
}
// try {

View File

@ -3,9 +3,13 @@
@section('title', '支付处理')
@section('content')
<h2>正在处理</h2>
<p>我们正在处理,您的余额很快就到账。</p>
@if ($balance->paid_at)
<h2>您已支付</h2>
<p>我们收到了您的支付,谢谢!</p>
@else
<h2>正在处理</h2>
<p>我们正在处理,您的余额很快就到账。</p>
@endif
@endsection