From d92548dbe64dbd48b319113dde6ea5c3647609fa Mon Sep 17 00:00:00 2001 From: root Date: Sat, 23 Nov 2019 23:29:22 +0800 Subject: [PATCH] update --- app/Http/Controllers/Admin/ConfigController.php | 3 ++- app/Http/Requests/Admin/ConfigSave.php | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/ConfigController.php b/app/Http/Controllers/Admin/ConfigController.php index 5433fbdc..c640d6a5 100755 --- a/app/Http/Controllers/Admin/ConfigController.php +++ b/app/Http/Controllers/Admin/ConfigController.php @@ -28,7 +28,8 @@ class ConfigController extends Controller 'stop_register' => (int)config('v2board.stop_register', 0), 'email_verify' => (int)config('v2board.email_verify', 0), 'app_name' => config('v2board.app_name', 'V2Board'), - 'app_url' => config('v2board.app_url') + 'app_url' => config('v2board.app_url'), + 'subscribe_url' => config('v2board.subscribe_url') ], 'pay' => [ // alipay diff --git a/app/Http/Requests/Admin/ConfigSave.php b/app/Http/Requests/Admin/ConfigSave.php index f6f768e6..b371c463 100755 --- a/app/Http/Requests/Admin/ConfigSave.php +++ b/app/Http/Requests/Admin/ConfigSave.php @@ -16,6 +16,8 @@ class ConfigSave extends FormRequest 'email_verify', 'app_name', 'app_url', + 'subscribe_url', + // server 'server_token', // alipay 'alipay_enable', @@ -47,8 +49,10 @@ class ConfigSave extends FormRequest 'invite_never_expire' => 'in:0,1', 'stop_register' => 'in:0,1', 'email_verify' => 'in:0,1', - 'server_token' => 'min:16', 'app_url' => 'url', + 'subscribe_url' => 'url', + // server + 'server_token' => 'min:16', // alipay 'alipay_enable' => 'in:0,1', 'alipay_appid' => 'integer|min:16',