From 603f2987f6700a147529914f0225dfdfb0137c86 Mon Sep 17 00:00:00 2001 From: lik Date: Mon, 25 May 2026 12:24:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=A8=E6=88=B7=E9=BB=98?= =?UTF-8?q?=E8=AE=A4appid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/users.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/handler/users.js b/handler/users.js index 355df9c..571d8e5 100644 --- a/handler/users.js +++ b/handler/users.js @@ -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;