From f2531a32531f2da6c6119201dc7c7d666e583bf2 Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期四, 11 九月 2025 10:15:03 +0800 Subject: [PATCH] feat:开发 --- FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs index a5c010d..a219696 100644 --- a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs +++ b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs @@ -23,6 +23,7 @@ /// </summary> public class LoginCommandHandler( IRepository<User> rep, + IRepository<UserAuth> repUserAuth, IRepository<UserWallet> repUserWallet, SmsUtils smsUtils, WxmpUtils wxmpUtils) : @@ -36,6 +37,7 @@ IRequestHandler<GetEnterpriseLoginInfoQuery, GetEnterpriseLoginInfoQueryResult> { private readonly IRepository<User> rep = rep; + private readonly IRepository<UserAuth> repUserAuth = repUserAuth; private readonly IRepository<UserWallet> repUserWallet = repUserWallet; private readonly SmsUtils smsUtils = smsUtils; private readonly WxmpUtils wxmpUtils = wxmpUtils; @@ -257,7 +259,7 @@ ContactPhoneNumber = request.PhoneNumber, IsCheckPhoneNumber = true, Level = 1, - Status = EnumUserStatus.Normal + Status = EnumUserStatus.Normal, }; await rep.InsertAsync(user); @@ -289,6 +291,10 @@ .Where(it => it.UserId == model.Id) .Select(it => it.Balance) .FirstOrDefaultAsync(); + model.RealStatus = await repUserAuth.AsQueryable().AsNoTracking() + .Where(it => it.Id == model.Id) + .Select(it => it.RealStatus) + .FirstOrDefaultAsync(); return model; } -- Gitblit v1.9.1