add: tos url

This commit is contained in:
tokumeikoi 2021-05-07 00:12:58 +09:00
parent ef1c0b6091
commit 2cfaeb2fb9
2 changed files with 5 additions and 2 deletions

View File

@ -66,7 +66,8 @@ class ConfigController extends Controller
'email_gmail_limit_enable' => config('v2board.email_gmail_limit_enable', 0), 'email_gmail_limit_enable' => config('v2board.email_gmail_limit_enable', 0),
'recaptcha_enable' => (int)config('v2board.recaptcha_enable', 0), 'recaptcha_enable' => (int)config('v2board.recaptcha_enable', 0),
'recaptcha_key' => config('v2board.recaptcha_key'), 'recaptcha_key' => config('v2board.recaptcha_key'),
'recaptcha_site_key' => config('v2board.recaptcha_site_key') 'recaptcha_site_key' => config('v2board.recaptcha_site_key'),
'tos_url' => config('v2board.tos_url')
], ],
'subscribe' => [ 'subscribe' => [
'plan_change_enable' => (int)config('v2board.plan_change_enable', 1), 'plan_change_enable' => (int)config('v2board.plan_change_enable', 1),

View File

@ -41,6 +41,7 @@ class ConfigSave extends FormRequest
'recaptcha_enable' => 'in:0,1', 'recaptcha_enable' => 'in:0,1',
'recaptcha_key' => '', 'recaptcha_key' => '',
'recaptcha_site_key' => '', 'recaptcha_site_key' => '',
'tos_url' => 'nullable|url',
// subscribe // subscribe
'plan_change_enable' => 'in:0,1', 'plan_change_enable' => 'in:0,1',
'reset_traffic_method' => 'in:0,1', 'reset_traffic_method' => 'in:0,1',
@ -121,7 +122,8 @@ class ConfigSave extends FormRequest
return [ return [
'app_url.url' => '站点URL格式不正确必须携带http(s)://', 'app_url.url' => '站点URL格式不正确必须携带http(s)://',
'subscribe_url.url' => '订阅URL格式不正确必须携带http(s)://', 'subscribe_url.url' => '订阅URL格式不正确必须携带http(s)://',
'server_token.min' => '通讯密钥长度必须大于16位' 'server_token.min' => '通讯密钥长度必须大于16位',
'tos_url.url' => '服务条款URL格式不正确'
]; ];
} }
} }