feat: enforce youth mode policy and improve search
This commit is contained in:
@@ -23,7 +23,7 @@ Idempotency-Key: <uuid>
|
||||
|
||||
测试环境验证码固定为 `123456`。`action_token` 为 5 分钟有效、单次消费,只能用于指定动作,不能在多个接口之间重复使用。
|
||||
|
||||
当前默认策略项为 `night_quiet`、`content_filter`、`payment_guard` 三条。现阶段后端已完成状态持久化、开启/关闭校验和策略返回;业务接口层的深夜消息免打扰、内容过滤、支付拦截尚未实际强制执行,响应中的 `restriction_items[].enforced=false` 用于明确表达这一点。后续某条规则真正接入后台策略和业务拦截后,应把对应项改为 `true`。
|
||||
当前默认策略项为 `night_quiet`、`content_filter`、`payment_guard` 三条。现阶段后端已完成状态持久化、开启/关闭校验和策略返回;`night_quiet` 已接入音视频呼叫发起限制,`content_filter` 已接入消息发送前内容安全审核,响应中的这两项 `restriction_items[].enforced=true`。`payment_guard` 当前仍为预留项,`enforced=false`。
|
||||
|
||||
## 2. 开启青少年模式
|
||||
|
||||
@@ -47,13 +47,13 @@ GET /v1/im/settings/youth-mode
|
||||
"code": "night_quiet",
|
||||
"title": "深夜免打扰",
|
||||
"description": "夜间减少消息提醒打扰,帮助用户保持健康作息。",
|
||||
"enforced": false
|
||||
"enforced": true
|
||||
},
|
||||
{
|
||||
"code": "content_filter",
|
||||
"title": "内容过滤",
|
||||
"description": "对不适合青少年的内容进行识别和限制展示。",
|
||||
"enforced": false
|
||||
"enforced": true
|
||||
},
|
||||
{
|
||||
"code": "payment_guard",
|
||||
@@ -202,13 +202,13 @@ POST /v1/im/settings/youth-mode/enable
|
||||
"code": "night_quiet",
|
||||
"title": "深夜免打扰",
|
||||
"description": "夜间减少消息提醒打扰,帮助用户保持健康作息。",
|
||||
"enforced": false
|
||||
"enforced": true
|
||||
},
|
||||
{
|
||||
"code": "content_filter",
|
||||
"title": "内容过滤",
|
||||
"description": "对不适合青少年的内容进行识别和限制展示。",
|
||||
"enforced": false
|
||||
"enforced": true
|
||||
},
|
||||
{
|
||||
"code": "payment_guard",
|
||||
|
||||
Reference in New Issue
Block a user