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 {