李昊 4 년 전
부모
커밋
d2943738ca

+ 1 - 1
gx_api/GxPress/Api/GxPress.Api/AppControllers/AddressBookGroupUserController.cs

@@ -50,9 +50,9 @@ namespace GxPress.Api.AppControllers
         [HttpPost("delete")]
         public async Task<bool> Deletes(AddressBookGroupUserDeleteRequest request)
         {
+            var model = await _addressBookGroupUserRepository.GetAllAsync(Q.WhereIn(nameof(Entity.AddressBookGroupUser.Id), request.Ids));
             if (await _addressBookGroupUserRepository.DeletesAsync(request.Ids))
             {
-                var model = await _addressBookGroupUserRepository.GetAllAsync(Q.WhereIn(nameof(Entity.AddressBookGroupUser.Id), request.Ids));
                 return await friendsRepository.DeleteAsync(model.Select(n => n.UserId), _loginContext.AccountId);
             }
             return false;

+ 0 - 1
gx_api/GxPress/Service/GxPress.Service.Implement/AdminVerify/AdminVerifyService.cs

@@ -117,7 +117,6 @@ namespace GxPress.Service.Implement.AdminVerify
                 }
             }
             //修改状态
-            // await _adminVerifyRepository.UpdateAsync(Q.Where(nameof(Entity.AdminVerify.AdminId), adminVerify.AdminId).Where(nameof(Entity.AdminVerify.UserId), adminVerify.UserId).Where(nameof(Entity.AdminVerify.SourceType), adminVerify.SourceType).Where(nameof(Entity.AdminVerify.SourceId), adminVerify.SourceId).Set(nameof(Entity.AdminVerify.DisposeType), AdminVerifyTypeConst.Approve.GetHashCode()));
             await _adminVerifyRepository.UpdateAsync(Q.Where(nameof(Entity.AdminVerify.Id), id).Set(nameof(Entity.AdminVerify.DisposeType), disposeTyeConst.GetHashCode()));
             return true;
         }