From e29f86fa8c7833eec8248daa682eb44e16e97a12 Mon Sep 17 00:00:00 2001 From: jjxu <428192774@qq.com> Date: Mon, 27 Mar 2023 09:52:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5=E5=80=BC?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/internal/logic/artistinfo_artwork.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/internal/logic/artistinfo_artwork.go b/cmd/internal/logic/artistinfo_artwork.go index cf4d806..bf9e174 100644 --- a/cmd/internal/logic/artistinfo_artwork.go +++ b/cmd/internal/logic/artistinfo_artwork.go @@ -221,7 +221,7 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA if err != nil { return nil, err } - if userList == nil || len(userList) == 0 { + if len(userList) == 0 { return nil, nil } var artistUids []string @@ -251,9 +251,9 @@ func (a ArtistInfoArtworkLogic) ArtworkStatic(request *artistInfoArtwork.ArtistA //查询这些画家审核通过的画作数据统计 res = &artistInfoArtwork.ArtistArtworkStaticResponse{ - Page: int64(artistList.Count), - PageSize: int64(artistList.Page), - Total: request.PageSize, + Page: int64(artistList.Page), + PageSize: int64(request.PageSize), + Total: int64(artistList.Count), } viewDatas, err := dao.PassedArtworkStatic(request, artistUids) if err != nil {