Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tech.illasoft.com/llms.txt

Use this file to discover all available pages before exploring further.

路径

PUT /user/profile

认证

Bearer JWT

请求 Body

字段类型必填说明
nicknamestring昵称
languagestringi18n 偏好
avatarImageIdstring头像文件 ID(上传后传回)
watermarkboolean下载时自动加水印
isOpenNotificationboolean通知开关
所有字段可选,传了才更新。

响应

{
  id: string,
  nickname: string,
  avatarUrl: string,
  plan: string
}

CSAM 头像审核

如请求中包含 avatarImageId同步执行:
checkAvatarCsam(avatarImageId, userId)
  ├─ detectCsamFromUrl(imgproxy URL)
  └─ 命中:
      ├─ 删除 Storage 中的头像文件
      ├─ 记录 log event csam.blocked.avatar_upload
      └─ 响应 451 Unavailable For Legal Reasons
前端 lib/utils.tsuploadImage() 捕获 451 → 抛 CSAM_BLOCKED_ERROR = "csam_blocked" → toast + i18n key error.csam_not_allowed

错误码

状态含义
400请求体无效
451头像 CSAM 命中

  • src/hono/user/index.ts:626-632
  • src/hono/user/csam.ts:40

相关