mirror of
https://github.com/v2board/v2board.git
synced 2025-06-13 21:28:27 +08:00
update: add payment app_url alert
This commit is contained in:
@ -42,6 +42,9 @@ class PaymentController extends Controller
|
||||
|
||||
public function save(Request $request)
|
||||
{
|
||||
if (!config('v2board.site.app_url')) {
|
||||
abort(500, '请在站点配置中配置站点地址');
|
||||
}
|
||||
if ($request->input('id')) {
|
||||
$payment = Payment::find($request->input('id'));
|
||||
if (!$payment) abort(500, '支付方式不存在');
|
||||
|
Reference in New Issue
Block a user