|
@@ -292,8 +292,8 @@ func BuyerListRedisCache(query string, in *bxbuyer.BuyerListReq) (buyerNames []s
|
|
start := in.PageSize * (in.PageNum - 1)
|
|
start := in.PageSize * (in.PageNum - 1)
|
|
end := in.PageSize * in.PageNum
|
|
end := in.PageSize * in.PageNum
|
|
resp.Data.Count = int64(len(saveBuyerList))
|
|
resp.Data.Count = int64(len(saveBuyerList))
|
|
- if end > int64(len(saveBuyerList)-1) {
|
|
|
|
- end = int64(len(saveBuyerList) - 1)
|
|
|
|
|
|
+ if end > int64(len(saveBuyerList)) {
|
|
|
|
+ end = int64(len(saveBuyerList))
|
|
}
|
|
}
|
|
resp.Data.List = saveBuyerList[start:end]
|
|
resp.Data.List = saveBuyerList[start:end]
|
|
logx.Info("空搜索整体耗时;", time.Since(t1).Seconds(), "秒--", time.Since(t1).Microseconds())
|
|
logx.Info("空搜索整体耗时;", time.Since(t1).Seconds(), "秒--", time.Since(t1).Microseconds())
|