mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: add telegram discuss link & ui
This commit is contained in:
parent
8fa73c2d4b
commit
0f777f1a77
@ -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'),
|
||||||
|
@ -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),
|
||||||
|
@ -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)://'
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
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
1226
public/theme/v2board/assets/i18n.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2
public/theme/v2board/assets/umi.js
vendored
2
public/theme/v2board/assets/umi.js
vendored
File diff suppressed because one or more lines are too long
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user