diff --git a/CoreCms.Net.Web.WebApi/Controllers/UserController.cs b/CoreCms.Net.Web.WebApi/Controllers/UserController.cs index c09100f2..31faece0 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/UserController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/UserController.cs @@ -2082,13 +2082,13 @@ namespace CoreCms.Net.Web.WebApi.Controllers var data = await _userServices.QueryPageAsync(where, p => p.createTime, OrderByType.Desc, entity.page, entity.limit); jm.status = true; - jm.data = data.Select(async p => new + jm.data = data.Select(p => new { p.nickName, p.avatarImage, mobile = UserHelper.FormatMobile(p.mobile), p.createTime, - childNum = await _userServices.GetCountAsync(p => p.parentId == p.id) + childNum = _userServices.GetCount(p => p.parentId == p.id) }); jm.otherData = new {