|
@@ -43,8 +43,6 @@ func GetBidSearchData(in *bxcore.SearchReq, isCache bool) (count int64, list []*
|
|
|
fields = fields + es.BidSearchFieldFile
|
|
|
}
|
|
|
biddingSearch := es.SearchByES{
|
|
|
- Index: MC.If(in.UserId == "", es.INDEXNoLogin, es.INDEX).(string),
|
|
|
- IType: MC.If(in.UserId == "", es.TYPENoLogin, es.TYPE).(string),
|
|
|
Query: es.GetSearchQuery(in, es.GetBidSearchQuery(in)),
|
|
|
FindFields: MC.If(isCache, "title", "detail").(string),
|
|
|
Order: es.BidSearchSort,
|
|
@@ -58,12 +56,16 @@ func GetBidSearchData(in *bxcore.SearchReq, isCache bool) (count int64, list []*
|
|
|
// 处理免费用户index
|
|
|
if in.UserId == "" {
|
|
|
loginType = es.LoginTypeNoLogin
|
|
|
+ biddingSearch.Index = IC.DB.EsNoLogin.Index
|
|
|
+ biddingSearch.IType = IC.DB.EsNoLogin.Type
|
|
|
} else if !in.IsPay {
|
|
|
+ loginType = es.LoginTypeFree
|
|
|
biddingSearch.Index = IC.DB.EsFree.Index
|
|
|
biddingSearch.IType = IC.DB.EsFree.Type
|
|
|
- loginType = es.LoginTypeFree
|
|
|
} else {
|
|
|
loginType = es.LoginTypePay
|
|
|
+ biddingSearch.Index = IC.DB.Es.Index
|
|
|
+ biddingSearch.IType = IC.DB.Es.Type
|
|
|
}
|
|
|
var repl *[]map[string]interface{}
|
|
|
if in.UserId != "" {
|