|
@@ -752,9 +752,14 @@ func ObjData(isPayUser bool, sid, content string, lent int) (t bool, obj map[str
|
|
|
obj["_id"] = encrypt.EncodeArticleId2ByCheck(sid)
|
|
|
infoformat := util.IntAllDef(obj["infoformat"], 1)
|
|
|
obj["infoformat"] = infoformat
|
|
|
- //精准字段(竞争对手的地址) 或 拟建项目
|
|
|
- if obj["competehref"] != nil || infoformat == 2 {
|
|
|
+ // p385调整为 除了从竞品爬虫到的新数据,不展示“查看原文链接”入口,其他公告都展示“查看原文链接”入口(包含客户管理系统-结构化数据,查看的标讯详情页)
|
|
|
+ // 精准字段(竞争对手的地址) 或 拟建项目
|
|
|
+ //competehref字段来源:
|
|
|
+ //1、竞品采集 href="#" competehref=原网址
|
|
|
+ //2、2021-11-01后新增的爬虫 href=原网址 competehref="#"
|
|
|
+ if util.ObjToString(obj["href"]) == "#" || infoformat == 2 {
|
|
|
delete(obj, "href")
|
|
|
+ delete(obj, "competehref")
|
|
|
}
|
|
|
if strings.Trim(util.ObjToString(obj["detail"]), " ") == "" {
|
|
|
obj["detail"] = ""
|