李昊 4 lat temu
rodzic
commit
7d7260bfb0

+ 1 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/Group/GroupService.cs

@@ -235,7 +235,7 @@ namespace GxPress.Service.Implement.Group
             if (result.IsUser == false)
             {
                 var adminVerify = await adminVerifyRepository.GetAsync(Q.Where(nameof(Entity.AdminVerify.VerifyType), 3).Where(nameof(Entity.AdminVerify.SourceId), result.Id));
-                result.IsApply = adminVerify.DisposeType == 0;
+                result.IsApply = adminVerify != null && adminVerify.DisposeType == 0;
             }
             result.UserName = user.Name;
             result.GroupUserNumber = result.GroupUserListResult.Count();