From d722161e65258b4bd5a97c9564e5727ab9579cca Mon Sep 17 00:00:00 2001 From: jianweie code Date: Fri, 29 Dec 2023 19:43:11 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BC=98=E5=8C=96=E3=80=91=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E7=94=A8=E6=88=B7=E6=8E=A8=E8=8D=90=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E4=B8=AD=E4=B8=8B=E7=BA=A7=E7=94=A8=E6=88=B7=E7=9A=84=E4=BA=8C?= =?UTF-8?q?=E7=BA=A7=E6=80=BB=E6=95=B0=E8=B0=83=E6=95=B4=E4=B8=BA=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E8=8E=B7=E5=8F=96=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=9E=81?= =?UTF-8?q?=E4=B8=AA=E5=88=AB=E7=8E=AF=E5=A2=83=E4=B8=8B=E5=87=BA=E7=8E=B0?= =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E5=86=85=E5=BC=82=E6=AD=A5=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E8=80=8C=E5=AF=BC=E8=87=B4404=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CoreCms.Net.Web.WebApi/Controllers/UserController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {