feat(ip-geo): full-chain IP 归属地 on comments, user home, center, post
This commit is contained in:
1 parent
1f2ca3ac8f
commit
ac7ff8d4f2
13 files changed
+457
-33
No files matched your search
@@ -7,7 +7,7 @@ export const ipSchema = {
|
||||
ip_geo_enabled: false,
|
||||
ip_addr_sdk: 'null',
|
||||
ip_geo_cache_ttl: 86400,
|
||||
ip_geo_display: ['comment'],
|
||||
ip_geo_display: ['comment', 'user_home', 'user_center', 'post'],
|
||||
ip_geo_format: 'province_city',
|
||||
ip_geo_fallback_text: '',
|
||||
ip_addr_sdk_qq_appkey: '',
|
||||
@@ -59,13 +59,15 @@ export const ipSchema = {
|
||||
key: 'ip_geo_display',
|
||||
label: '展示位置',
|
||||
type: 'checkbox',
|
||||
default: ['comment'],
|
||||
default: ['comment', 'user_home', 'user_center', 'post'],
|
||||
options: [
|
||||
{ label: '评论区', value: 'comment' },
|
||||
{ label: '用户主页', value: 'user_home' },
|
||||
{ label: '文章页', value: 'post' },
|
||||
{ label: '用户中心', value: 'user_center' },
|
||||
{ label: '文章详细页', value: 'post' },
|
||||
],
|
||||
dependsOn: { key: 'ip_geo_enabled', value: true },
|
||||
help: '用户主页/用户中心还需在「用户 → 用户功能」开启「显示城市」;评论区还需在评论设置开启「评论城市」。',
|
||||
},
|
||||
{
|
||||
key: 'ip_geo_format',
|
||||
|
||||
Reference in new issue
Block a user