改进 支付

This commit is contained in:
iVampireSP.com 2022-09-06 15:12:30 +08:00
parent 9eeeac6cd3
commit 8198680a19
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132
4 changed files with 28 additions and 23 deletions

View File

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

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>支付结果</title>
</head>
<body>
<p>无法完成支付,请联系我们。</p>
</body>
</html>

View File

@ -1,21 +0,0 @@
<!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>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>支付结果</title>
</head>
<body>
<p>非常感谢。您现在可以关闭页面并继续刚才的操作了。</p>
</body>
</html>