From 7a308e22612ce97bee9ff01c95f84f173ef894be Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sat, 8 Nov 2025 22:55:15 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=A2=E6=88=B7=E7=AB=AF=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E8=B5=84=E6=96=99?= =?UTF-8?q?=E5=90=8E=E6=B2=A1=E6=9C=89=E5=9C=A8=E5=8E=9F=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=20Bean=20=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client-protocol/UserMySelf.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client-protocol/UserMySelf.ts b/client-protocol/UserMySelf.ts index cb130e1..4c3b4e7 100644 --- a/client-protocol/UserMySelf.ts +++ b/client-protocol/UserMySelf.ts @@ -42,7 +42,7 @@ export default class UserMySelf extends User { async resetPasswordOrThrow(old_password: string, new_password: string) { const re = await this.client.invoke("User.resetPassword", { token: this.client.access_token, - old_password, + old_password, new_password, }) if (re.code != 200) throw new CallbackError(re) @@ -66,6 +66,7 @@ export default class UserMySelf extends User { file_hash, }) if (re.code != 200) throw new CallbackError(re) + this.bean.avatar_file_hash = file_hash } async setUserName(user_name: string) { return await this.updateProfile({ username: user_name }) @@ -103,6 +104,8 @@ export default class UserMySelf extends User { username, }) if (re.code != 200) throw new CallbackError(re) + nickname && (this.bean.nickname = nickname) + username && (this.bean.username = username) } /* * ================================================