Jelajahi Sumber

feat:注册时间

wangshan 1 tahun lalu
induk
melakukan
aba8df9716
1 mengubah file dengan 6 tambahan dan 2 penghapusan
  1. 6 2
      jyBXCore/rpc/entity/search.go

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

@@ -160,7 +160,10 @@ func (kws *KeyWordsSearch) GetSearchKeyWordsQueryStr(in *bxcore.SearchReq) (sear
 // SearchParamsHandle 搜索条件 处理
 func (kws *KeyWordsSearch) SearchParamsHandle(in *bxcore.SearchReq) []string {
 	//判断用户身份
-	var userInfo powercheck.CheckResp
+	var (
+		userInfo     powercheck.CheckResp
+		registerDate int64 = 0
+	)
 	if in.UserId != "" {
 		baseUserId, _ := strconv.ParseInt(in.NewUserId, 10, 64)
 		accountId, _ := strconv.ParseInt(in.AccountId, 10, 64)
@@ -169,12 +172,13 @@ func (kws *KeyWordsSearch) SearchParamsHandle(in *bxcore.SearchReq) []string {
 		userInfo = *IC.Middleground.PowerCheckCenter.Check(in.AppId, in.MgoUserId, baseUserId, accountId, in.EntId, positionType, positionId)
 		//是否是付费用户
 		in.IsPay = !userInfo.Free.IsFree
+		registerDate = userInfo.Free.Registedate
 	}
 	//默认搜索范围
 	if in.SelectType == "" {
 		in.SelectType = "title,content"
 	}
-	queryItems := util.GetQueryItems(in.SelectType, IC.C.BidSearchOldUserLimit, userInfo.Free.Registedate, in.IsPay)
+	queryItems := util.GetQueryItems(in.SelectType, IC.C.BidSearchOldUserLimit, registerDate, in.IsPay)
 	in.SelectType = strings.Join(queryItems, ",")
 	// in.SearchGroup 搜索分组 搜索分组:默认0:全部;1:招标采购公告;2:超前项目
 	//	详情页判断是否能使用超前项目  老版超级订阅、大会员、商机管理有权限