sunpengfei
21 小时以前 f2531a32531f2da6c6119201dc7c7d666e583bf2
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;
        }