修改用户默认appid
This commit is contained in:
@@ -85,11 +85,10 @@ class HandlerUser {
|
||||
social: {
|
||||
wechat: { openid: openid },
|
||||
},
|
||||
status: { account: "normal", },
|
||||
app: {
|
||||
attendant: { role: ["patient"], },
|
||||
},
|
||||
status: { account: "normal", }
|
||||
};
|
||||
newUser.app[appId] = { role: ["user"], };
|
||||
|
||||
user = await DBModel.User.setUser(newUser);
|
||||
} else if (phoneNumber && phoneNumber.length > 0 && user.profile.mobile !== phoneNumber) {
|
||||
user.profile.mobile = phoneNumber;
|
||||
|
||||
Reference in New Issue
Block a user