修改用户默认appid

This commit is contained in:
lik
2026-05-25 12:24:22 +08:00
parent 2245960ccf
commit 603f2987f6

View File

@@ -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;