|
@@ -254,7 +254,19 @@ func (p *Pcsearch) PcSearchIndex() error {
|
|
if selectType == "" {
|
|
if selectType == "" {
|
|
selectType = "title,content"
|
|
selectType = "title,content"
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ vipStatus := jy.GetVipState(public.Mysql, public.MQFW, userId)
|
|
|
|
+ isPayedUser := vipStatus.IsPayedUser()
|
|
|
|
+ queryItems := vipStatus.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
|
+ if isPayedUser {
|
|
|
|
+ buyerclass = p.GetString("buyerclass")
|
|
|
|
+ hasBuyerTel, hasWinnerTel = p.GetString("buyertel"), p.GetString("winnertel")
|
|
|
|
+ notkey = p.GetString("notkey")
|
|
|
|
+ } else {
|
|
|
|
+ //时间自定义选择默认是vip 大会员 等权限
|
|
|
|
+ if len(strings.Split(publishtime, "_")) == 2 {
|
|
|
|
+ publishtime = ""
|
|
|
|
+ }
|
|
|
|
+ }
|
|
//历史导出数据回显
|
|
//历史导出数据回显
|
|
if strings.Contains(p.Url(), "?goback") {
|
|
if strings.Contains(p.Url(), "?goback") {
|
|
keywords = util.ObjToString(p.GetSession("Echo_keywords"))
|
|
keywords = util.ObjToString(p.GetSession("Echo_keywords"))
|
|
@@ -269,19 +281,7 @@ func (p *Pcsearch) PcSearchIndex() error {
|
|
hasBuyerTel = util.ObjToString(p.GetSession("Echo_hasBuyertel"))
|
|
hasBuyerTel = util.ObjToString(p.GetSession("Echo_hasBuyertel"))
|
|
hasWinnerTel = util.ObjToString(p.GetSession("Echo_hasWinnertel"))
|
|
hasWinnerTel = util.ObjToString(p.GetSession("Echo_hasWinnertel"))
|
|
industry = util.ObjToString(p.GetSession("Echo_industry"))
|
|
industry = util.ObjToString(p.GetSession("Echo_industry"))
|
|
- }
|
|
|
|
- vipStatus := jy.GetVipState(public.Mysql, public.MQFW, userId)
|
|
|
|
- isPayedUser := vipStatus.IsPayedUser()
|
|
|
|
- queryItems := vipStatus.GetQueryItems(selectType, util.Int64All(config.Sysconfig["bidSearchOldUserLimit"]))
|
|
|
|
- if isPayedUser {
|
|
|
|
- buyerclass = p.GetString("buyerclass")
|
|
|
|
- hasBuyerTel, hasWinnerTel = p.GetString("buyertel"), p.GetString("winnertel")
|
|
|
|
- notkey = p.GetString("notkey")
|
|
|
|
- } else {
|
|
|
|
- //时间自定义选择默认是vip 大会员 等权限
|
|
|
|
- if len(strings.Split(publishtime, "_")) == 2 {
|
|
|
|
- publishtime = ""
|
|
|
|
- }
|
|
|
|
|
|
+ notkey = util.ObjToString(p.GetSession("Echo_notkey"))
|
|
}
|
|
}
|
|
|
|
|
|
b_word, s_word := "", ""
|
|
b_word, s_word := "", ""
|