@@ -776,7 +776,11 @@ func (so *SearchOptimize) GetBidSearchListByCache() (list []*map[string]interfac
if len(l) > 0 {
total = t
count = c
- list = l[(so.PageNum-1)*so.PageSize : so.PageNum*so.PageSize]
+ if len(l) < so.PageNum*so.PageSize {
+ list = l[(so.PageNum-1)*so.PageSize:]
+ } else {
+ list = l[(so.PageNum-1)*so.PageSize : so.PageNum*so.PageSize]
+ }
}
return