Browse Source

update: add payment app_url alert

tokumeikoi 3 years ago
parent
commit
c0d3150461
2 changed files with 4 additions and 1 deletions
  1. 3 0
      app/Http/Controllers/Admin/PaymentController.php
  2. 1 1
      config/app.php

+ 3 - 0
app/Http/Controllers/Admin/PaymentController.php

@@ -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, '支付方式不存在');

+ 1 - 1
config/app.php

@@ -236,5 +236,5 @@ return [
     | The only modification by laravel config
     |
     */
-    'version' => '1.5.2.1627559775390'
+    'version' => '1.5.3.1627560708248'
 ];