This commit is contained in:
root 2019-11-23 23:29:22 +08:00
parent 4370db4037
commit d92548dbe6
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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',