update: add telegram discuss link & ui

This commit is contained in:
tokumeikoi 2021-12-17 01:53:03 +08:00
parent 8fa73c2d4b
commit 0f777f1a77
9 changed files with 1237 additions and 6 deletions

View File

@ -173,7 +173,8 @@ class ConfigController extends Controller
], ],
'telegram' => [ 'telegram' => [
'telegram_bot_enable' => config('v2board.telegram_bot_enable', 0), 'telegram_bot_enable' => config('v2board.telegram_bot_enable', 0),
'telegram_bot_token' => config('v2board.telegram_bot_token') 'telegram_bot_token' => config('v2board.telegram_bot_token'),
'telegram_discuss_link' => config('v2board.telegram_discuss_link')
], ],
'app' => [ 'app' => [
'windows_version' => config('v2board.windows_version'), 'windows_version' => config('v2board.windows_version'),

View File

@ -14,6 +14,7 @@ class CommController extends Controller
return response([ return response([
'data' => [ 'data' => [
'is_telegram' => (int)config('v2board.telegram_bot_enable', 0), 'is_telegram' => (int)config('v2board.telegram_bot_enable', 0),
'telegram_discuss_link' => config('v2board.telegram_discuss_link'),
'stripe_pk' => config('v2board.stripe_pk_live'), 'stripe_pk' => config('v2board.stripe_pk_live'),
'withdraw_methods' => config('v2board.commission_withdraw_method', Dict::WITHDRAW_METHOD_WHITELIST_DEFAULT), 'withdraw_methods' => config('v2board.commission_withdraw_method', Dict::WITHDRAW_METHOD_WHITELIST_DEFAULT),
'withdraw_close' => (int)config('v2board.withdraw_close_enable', 0), 'withdraw_close' => (int)config('v2board.withdraw_close_enable', 0),

View File

@ -112,6 +112,7 @@ class ConfigSave extends FormRequest
'telegram_bot_token' => '', 'telegram_bot_token' => '',
'telegram_discuss_id' => '', 'telegram_discuss_id' => '',
'telegram_channel_id' => '', 'telegram_channel_id' => '',
'telegram_discuss_link' => 'nullable|url',
// app // app
'windows_version' => '', 'windows_version' => '',
'windows_download_url' => '', 'windows_download_url' => '',
@ -129,7 +130,8 @@ class ConfigSave extends FormRequest
'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格式不正确' 'tos_url.url' => '服务条款URL格式不正确必须携带http(s)://',
'telegram_discuss_link.url' => 'Telegram群组地址必须为URL格式必须携带http(s)://'
]; ];
} }
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1226
public/theme/v2board/assets/i18n.js vendored Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -32,6 +32,7 @@
crisp_id: '{{$crisp_id}}' crisp_id: '{{$crisp_id}}'
} }
</script> </script>
<script src="/theme/{{$theme}}/assets/i18n.js"></script>
</head> </head>
<body> <body>