This commit is contained in:
2025-12-25 16:59:45 +08:00
parent 18a7c15a76
commit 868979a423
4 changed files with 63 additions and 32 deletions

View File

@@ -14,6 +14,7 @@ type UserData = {
orgs?: string[];
wxUnionId?: string;
phone?: string;
canChangeUsername?: boolean;
};
export enum UserTypes {
'user' = 'user',
@@ -182,6 +183,9 @@ export class User extends Model {
avatar: this.avatar,
orgs,
};
if(this.data?.canChangeUsername) {
info.canChangeUsername = this.data.canChangeUsername;
}
const tokenUser = this.tokenUser;
if (uid) {
info.uid = uid;