|
@@ -97,7 +97,11 @@ func (kws *KeyWordsSearch) GetBidSearchListByCache(in *bxcore.SearchReq) (list [
|
|
if count > limitCount {
|
|
if count > limitCount {
|
|
count = limitCount
|
|
count = limitCount
|
|
}
|
|
}
|
|
- list = l[(in.PageNum-1)*in.PageSize : in.PageNum*in.PageSize]
|
|
|
|
|
|
+ if len(l) >= int(in.PageNum*in.PageSize) {
|
|
|
|
+ list = l[(in.PageNum-1)*in.PageSize : in.PageNum*in.PageSize]
|
|
|
|
+ } else {
|
|
|
|
+ list = l[(in.PageNum-1)*in.PageSize:]
|
|
|
|
+ }
|
|
//是否收藏
|
|
//是否收藏
|
|
util.MakeCollection(in.UserId, list)
|
|
util.MakeCollection(in.UserId, list)
|
|
}
|
|
}
|