浏览代码

VIP推送预览调整

zhangxinlei1996 5 年之前
父节点
当前提交
e9668d379b
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/jfw/modules/subscribepay/src/util/vrew.go

+ 5 - 0
src/jfw/modules/subscribepay/src/util/vrew.go

@@ -52,6 +52,7 @@ func SubViewDatas(userId, allquery string, pageNum int) (keys []interface{}, lis
 		}
 	}
 	qstr := GetVIPViewSql(sql)
+	log.Println("---", qstr)
 	list = elastic.GetAllByNgram(INDEX, TYPE, qstr, findfields, bidSearch_sort, bidSearch_field, (pageNum-1)*view_pageSize, view_pageSize, 0, false)
 	if list != nil {
 		for _, v := range *list {
@@ -177,6 +178,10 @@ func GetSqlObjFromId(_id string) *ViewCondition {
 	o_vipjy, _ := (*query)["o_vipjy"].(map[string]interface{})
 	a_items := o_vipjy["a_items"].([]interface{})
 	a_buyerclass := o_vipjy["a_buyerclass"].([]interface{})
+	if len(a_buyerclass) > 0 && qutil.IntAllDef(o_vipjy["i_matchbuyerclass_other"], 1) == 1 && len(a_items) > 0 {
+		a_buyerclass = append(a_buyerclass, "其它")
+	}
+	log.Println("~~", a_buyerclass)
 	a_infotype := o_vipjy["a_infotype"].([]interface{})
 	o_area := o_vipjy["o_area"].(map[string]interface{})
 	return &ViewCondition{