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{