update
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user