Skip to content

Commit

Permalink
feat: 细节优化
Browse files Browse the repository at this point in the history
  • Loading branch information
godLei6 committed Oct 16, 2024
1 parent 91e0140 commit cee5e34
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (l *ProductInfoIndexLogic) ProductInfoIndex(in *dm.ProductInfoIndexReq) (*d
if err != nil {
return nil, err
}
if pis == nil || len(*pis) == 0 {
return &dm.ProductInfoIndexResp{}, nil
}
filter.ProductIDs = append(filter.ProductIDs, *pis...)
}
size, err = piDB.CountByFilter(l.ctx, filter)
Expand Down

0 comments on commit cee5e34

Please sign in to comment.