|
@@ -663,16 +663,18 @@ func wxvisitD(sid, userId, openId string) (objdata map[string]interface{}) {
|
|
|
obj["fwtscode"] = ltfd
|
|
|
}
|
|
|
obj["_id"] = util.EncodeArticleId2ByCheck(sid)
|
|
|
- obj["url"] = obj["href"]
|
|
|
+ // obj["url"] = obj["href"]
|
|
|
pt := obj["publishtime"]
|
|
|
obj["l_publishtime"] = pt
|
|
|
obj["publishtime"] = util.FormatDateWithObj(&pt, util.Date_Full_Layout)
|
|
|
//查询是否关注
|
|
|
obj["followFlag"] = false
|
|
|
obj["hasSession"] = false
|
|
|
- var infoformat = obj["infoformat"]
|
|
|
- if infoformat != nil && infoformat != "" {
|
|
|
- obj["infoformat"] = util.IntAll(infoformat)
|
|
|
+ var infoformat = util.IntAllDef(obj["infoformat"], 1)
|
|
|
+ obj["infoformat"] = infoformat
|
|
|
+ //精准字段(竞争对手的地址) 或 拟建项目
|
|
|
+ if obj["competehref"] != nil || infoformat == 2 {
|
|
|
+ delete(obj, "href")
|
|
|
}
|
|
|
if userId != "" {
|
|
|
pcode, _ := obj["projectcode"].(string)
|
|
@@ -836,18 +838,12 @@ func pcVRT(sid, industry string) (po, bo, wo []map[string]interface{}, objdata m
|
|
|
}
|
|
|
//obj, ok := elastic.GetByIdField("bidding", "bidding", sid, ""), true
|
|
|
if ok && obj != nil && len(obj) > 0 {
|
|
|
- //DealInfo(obj, coll)
|
|
|
- //fwt := util.ObjToString(obj["fieldweights"])
|
|
|
- //lwf := util.ObjToString(obj["lastwrongfield"])
|
|
|
- //ltfd := getLowestField(fwt, lwf)
|
|
|
- //if ltfd != "" {
|
|
|
- // obj["fwtsname"] = obj[ltfd]
|
|
|
- // obj["fwtscode"] = ltfd
|
|
|
- //}
|
|
|
obj["_id"] = util.EncodeArticleId2ByCheck(sid)
|
|
|
- var infoformat = obj["infoformat"]
|
|
|
- if infoformat != nil && infoformat != "" {
|
|
|
- obj["infoformat"] = util.IntAll(infoformat)
|
|
|
+ var infoformat = util.IntAllDef(obj["infoformat"], 1)
|
|
|
+ obj["infoformat"] = infoformat
|
|
|
+ //精准字段(竞争对手的地址) 或 拟建项目
|
|
|
+ if obj["competehref"] != nil || infoformat == 2 {
|
|
|
+ delete(obj, "href")
|
|
|
}
|
|
|
var purchasing = obj["purchasing"]
|
|
|
if purchasing != nil && purchasing != "" {
|