fix: 更新头像 file_hash 忘记检测 target 存在与否

This commit is contained in:
CrescentLeaf
2025-11-08 23:06:19 +08:00
parent 7a308e2261
commit 27035eb2ca

View File

@@ -463,7 +463,7 @@ export default class ChatApi extends BaseApi {
})
// 更新頭像
this.registerEvent("Chat.setAvatar", (args, { deviceId }) => {
if (this.checkArgsMissing(args, ['file_hash', 'token'])) return {
if (this.checkArgsMissing(args, ['file_hash', 'token', 'target'])) return {
msg: "参数缺失",
code: 400,
}