fix: 更新头像 file_hash 忘记检测 target 存在与否
This commit is contained in:
@@ -463,7 +463,7 @@ export default class ChatApi extends BaseApi {
|
|||||||
})
|
})
|
||||||
// 更新頭像
|
// 更新頭像
|
||||||
this.registerEvent("Chat.setAvatar", (args, { deviceId }) => {
|
this.registerEvent("Chat.setAvatar", (args, { deviceId }) => {
|
||||||
if (this.checkArgsMissing(args, ['file_hash', 'token'])) return {
|
if (this.checkArgsMissing(args, ['file_hash', 'token', 'target'])) return {
|
||||||
msg: "参数缺失",
|
msg: "参数缺失",
|
||||||
code: 400,
|
code: 400,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user