From 1b2de0ba707d21bfbf739bdd4e297dc9f9df3684 Mon Sep 17 00:00:00 2001 From: Mikasa33 Date: Thu, 11 Jul 2024 19:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E7=99=BB=E5=BD=95=EF=BC=8Cuser=5Finfo=20=E8=A1=A8=20loginType?= =?UTF-8?q?=20=E4=BF=9D=E5=AD=98=E7=9A=84=E5=80=BC=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/user/service/login.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/user/service/login.ts b/src/modules/user/service/login.ts index 6d32603..92a434e 100644 --- a/src/modules/user/service/login.ts +++ b/src/modules/user/service/login.ts @@ -185,11 +185,10 @@ export class UserLoginService extends BaseService { if (wxInfo) { wxUserInfo.id = wxInfo.id; } - await this.userWxEntity.save({ + return this.userWxEntity.save({ ...wxUserInfo, type, }); - return wxUserInfo; } /** @@ -230,6 +229,7 @@ export class UserLoginService extends BaseService { nickName: wxUserInfo.nickName, avatarUrl, gender: wxUserInfo.gender, + loginType: wxUserInfo.type, }; await this.userInfoEntity.insert(userInfo); }