소스 검색

feat:注释

wangshan 2 년 전
부모
커밋
039c9e1f1b
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/jfw/front/searchOptimize.go

+ 3 - 0
src/jfw/front/searchOptimize.go

@@ -647,6 +647,9 @@ func (so *SearchOptimize) GetBidSearchListByCache() (list []*map[string]interfac
 			if sCache != nil && len(*sCache) > 0 {
 				err = json.Unmarshal(*sCache, &list)
 				if err == nil {
+					//数据如果>最大数据结果量 total==count,否则count = 付费:5000;免费:500;
+					count = util.If(so.IsPay, int64(bidsearch.SearchMaxPageCount_PAYED), int64(bidsearch.SearchMaxPageCount_PC)).(int64)
+					count = util.If(count > total, total, count).(int64)
 					return
 				}
 			}