From e2fdf4708810a282bf20a9402fdf5a0e22462e18 Mon Sep 17 00:00:00 2001 From: summer <> Date: Thu, 6 Nov 2025 13:09:24 +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 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/internal/api/app/app_list.go b/internal/api/app/app_list.go index 330bf99..f0a3d11 100755 --- a/internal/api/app/app_list.go +++ b/internal/api/app/app_list.go @@ -2,13 +2,12 @@ package app import ( "fmt" - "net/http" - "mini-chat/internal/code" "mini-chat/internal/pkg/core" "mini-chat/internal/pkg/httpclient" "mini-chat/internal/pkg/timeutil" "mini-chat/internal/pkg/validation" + "net/http" "go.uber.org/zap" "gorm.io/gorm" @@ -146,7 +145,10 @@ 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)).Count() + messageTotalCount, _ := h.readDB.AppMessageLog.WithContext(ctx.RequestContext()). + Where(h.readDB.AppMessageLog.AppID.Eq(v.AppID)). + Where(h.readDB.AppMessageLog.SenderID.Neq("888888")). + Count() checkStatusText := "未知" response, err := httpclient.GetHttpClientWithContext(ctx.RequestContext()).R(). SetQueryParams(map[string]string{