|
@@ -354,16 +354,13 @@ func BiddingDataFormat(obj map[string]interface{}, id string) *entity.BidInfo {
|
|
|
//详情
|
|
|
bi.Detail.Detail = DetailFormat(strings.Trim(common.ObjToString(obj["detail"]), " "))
|
|
|
// p385调整为 除了从竞品爬虫到的新数据,不展示“查看原文链接”入口,其他公告都展示“查看原文链接”入口(包含客户管理系统-结构化数据,查看的标讯详情页)
|
|
|
- // 精准字段(竞争对手的地址) 或 拟建项目
|
|
|
//competehref字段来源:
|
|
|
- //1、竞品采集 href="#" competehref=原网址
|
|
|
- //2、2021-11-01后新增的爬虫 href=原网址 competehref="#"
|
|
|
infoFormat := common.IntAllDef(obj["infoformat"], 1)
|
|
|
+ obj["infoformat"] = infoFormat //信息类型,1代表标讯,2代表拟建,3代表产权
|
|
|
+ //href="#"为竞品
|
|
|
href := common.ObjToString(obj["href"])
|
|
|
- obj["infoformat"] = infoFormat
|
|
|
- //精准字段(竞争对手的地址) 或 拟建项目不返回原文地址
|
|
|
- // infoformat: 拟建数据标识
|
|
|
- if common.ObjToString(obj["href"]) != "#" && infoFormat != 2 && common.ObjToString(obj["site"]) != consts.JyTxt && href != "" {
|
|
|
+ //竞品及剑鱼信息发布的招标信息,不显示查看原文
|
|
|
+ if href != "" && href != "#" && common.ObjToString(obj["site"]) != consts.JyTxt {
|
|
|
bi.Detail.OriginalShow = true
|
|
|
}
|
|
|
//附件
|