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
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
nickname | string | 否 | 昵称 |
language | string | 否 | i18n 偏好 |
avatarImageId | string | 否 | 头像文件 ID(上传后传回) |
watermark | boolean | 否 | 下载时自动加水印 |
isOpenNotification | boolean | 否 | 通知开关 |
响应
CSAM 头像审核
如请求中包含avatarImageId,同步执行:
lib/utils.ts 的 uploadImage() 捕获 451 → 抛 CSAM_BLOCKED_ERROR = "csam_blocked" → toast + i18n key error.csam_not_allowed。
错误码
| 状态 | 含义 |
|---|---|
| 400 | 请求体无效 |
| 451 | 头像 CSAM 命中 |
源
src/hono/user/index.ts:626-632src/hono/user/csam.ts:40