From 5c45bc53e2c18e45130c21048df4af4896455c6d Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期五, 12 九月 2025 15:58:48 +0800
Subject: [PATCH] feat:开发

---
 FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs
index a219696..c8116c9 100644
--- a/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs
+++ b/FlexJobApi.UserServer.Application/Auths/Commands/LoginCommandHandler.cs
@@ -291,10 +291,16 @@
                 .Where(it => it.UserId == model.Id)
                 .Select(it => it.Balance)
                 .FirstOrDefaultAsync();
-            model.RealStatus = await repUserAuth.AsQueryable().AsNoTracking()
+            var auth = await repUserAuth.AsQueryable().AsNoTracking()
                 .Where(it => it.Id == model.Id)
-                .Select(it => it.RealStatus)
+                .Select(it => new
+                {
+                    it.RealStatus,
+                    it.RealFailMessage
+                })
                 .FirstOrDefaultAsync();
+            model.RealStatus = auth?.RealStatus ?? EnumPersonalUserRealStatus.UnReal;
+            model.RealFailMessage = auth?.RealFailMessage;
             return model;
         }
 

--
Gitblit v1.9.1