瀏覽代碼

feat:数量提示

wangshan 2 年之前
父節點
當前提交
991bea9bee
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 2
      jyBXCore/rpc/entity/search.go
  2. 1 1
      jyBXCore/rpc/internal/logic/getsearchlistlogic.go

+ 1 - 2
jyBXCore/rpc/entity/search.go

@@ -10,7 +10,6 @@ import (
 	IC "jyBXCore/rpc/init"
 	"jyBXCore/rpc/service"
 	"jyBXCore/rpc/util"
-	"log"
 	"strings"
 	"time"
 )
@@ -43,7 +42,7 @@ func (kws *KeyWordsSearch) GetBidSearchListByCache(in *bxcore.SearchReq) (list [
 	l, c := func(in *bxcore.SearchReq) (list []*bxcore.SearchList, count int64) {
 		//缓存数据: SearchGroup-全部;招标信息;超前项目信息;kws.PageNum-当前页 免费用户 or 付费用户
 		redisDataKey := fmt.Sprintf(SearchCacheKey, in.SearchGroup, MC.If(in.IsPay, "v", "f").(string), MC.If(in.BidField != "", in.BidField, "n").(string))
-		log.Println("redisDataKey:", redisDataKey)
+		logx.Info("redisDataKey:", redisDataKey)
 		//缓存数据总量 - 当前平台
 		redisCountKey := fmt.Sprintf(SearchCacheCount, in.SearchGroup, MC.If(in.IsPay, "v", "f").(string), MC.If(in.BidField != "", in.BidField, "n").(string))
 		sCache, err := redis.GetNewBytes(util.RedisNameNew, redisDataKey)

+ 1 - 1
jyBXCore/rpc/internal/logic/getsearchlistlogic.go

@@ -43,7 +43,7 @@ func (l *GetSearchListLogic) GetSearchList(in *bxcore.SearchReq) (*bxcore.Search
 		Count:          0,
 		List:           []*bxcore.SearchList{},
 		InterceptLimit: int64(MC.IntAllDef(IC.C.KeywordsLimit, 35)),
-		Total:          IC.C.DefaultBidInfo.Total,
+		Total:          MC.Int64All(IC.C.DefaultBidInfo.Total),
 	}
 	//初始化搜索对象
 	ks := entity.NewKeyWordsSearch()