feat: enforce youth mode policy and improve search
This commit is contained in:
+3
-3
@@ -1997,7 +1997,7 @@ func serveIMAppReleaseLatest(wrt http.ResponseWriter, req *http.Request) {
|
||||
if channel == "" {
|
||||
channel = "stable"
|
||||
}
|
||||
if platform != "ios" && platform != "android" {
|
||||
if platform != "ios" && platform != "android" && platform != "web" {
|
||||
writeIMError(wrt, req, http.StatusBadRequest, 30000, imReasonMalformedRequest, "malformed request", map[string]any{"field": "platform"})
|
||||
return
|
||||
}
|
||||
@@ -8169,13 +8169,13 @@ func youthModeRestrictionItems(restrictions []string) []map[string]any {
|
||||
"code": "night_quiet",
|
||||
"title": "深夜免打扰",
|
||||
"description": "夜间减少消息提醒打扰,帮助用户保持健康作息。",
|
||||
"enforced": false,
|
||||
"enforced": true,
|
||||
},
|
||||
"content_filter": {
|
||||
"code": "content_filter",
|
||||
"title": "内容过滤",
|
||||
"description": "对不适合青少年的内容进行识别和限制展示。",
|
||||
"enforced": false,
|
||||
"enforced": true,
|
||||
},
|
||||
"payment_guard": {
|
||||
"code": "payment_guard",
|
||||
|
||||
Reference in New Issue
Block a user