From 684511d51e83a66dc5a228adc99fab855d002c6c Mon Sep 17 00:00:00 2001 From: summer <> Date: Thu, 6 Nov 2025 15:53:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(1.0):=20=E8=B0=83=E6=95=B4=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=E6=95=B0=E5=AD=97=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/api/app/app_list.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/api/app/app_list.go b/internal/api/app/app_list.go index f0a3d11..c093b11 100755 --- a/internal/api/app/app_list.go +++ b/internal/api/app/app_list.go @@ -145,9 +145,8 @@ func (h *handler) PageList() core.HandlerFunc { checkAppRes := new(checkAppResponse) for k, v := range resultData { - messageTotalCount, _ := h.readDB.AppMessageLog.WithContext(ctx.RequestContext()). - Where(h.readDB.AppMessageLog.AppID.Eq(v.AppID)). - Where(h.readDB.AppMessageLog.SenderID.Neq("888888")). + userTotalCount, _ := h.readDB.AppUser.WithContext(ctx.RequestContext()). + Where(h.readDB.AppUser.AppID.Eq(v.AppID)). Count() checkStatusText := "未知" response, err := httpclient.GetHttpClientWithContext(ctx.RequestContext()).R(). @@ -182,7 +181,7 @@ func (h *handler) PageList() core.HandlerFunc { TemplateID: v.TemplateID, CreatedAt: timeutil.FriendlyTime(v.CreatedAt), UpdatedAt: timeutil.FriendlyTime(v.UpdatedAt), - MessageTotal: messageTotalCount, + MessageTotal: userTotalCount, CheckStatusText: checkStatusText, } }