Browse Source

wip:详情页

wangshan 8 months ago
parent
commit
28de8db12d

+ 2 - 1
src/jfw/modules/publicapply/src/detail/config.json

@@ -160,5 +160,6 @@
   "purchaseInfo": {
     "name": "阳光直采",
     "code": "zc_cgxx"
-  }
+  },
+  "originalTime": 1733241600
 }

+ 10 - 2
src/jfw/modules/publicapply/src/detail/dao/bidding.go

@@ -423,8 +423,16 @@ func (bi *BidInfo) BiddingDataFormat(obj map[string]interface{}, id string) {
 	//href="#"为竞品
 	href := common.ObjToString(obj["href"])
 	//竞品及剑鱼信息发布的招标信息,不显示查看原文
-	if href != "" && href != "#" && common.ObjToString(obj["site"]) != consts.JyTxt {
-		bi.Detail.OriginalShow = true
+	if time.Now().Unix() < dc.Config.OriginalTime { // 12.3 号 数据处理之前
+		if href != "" && href != "#" && common.ObjToString(obj["site"]) != consts.JyTxt {
+			bi.Detail.OriginalShow = true
+		}
+	} else {
+		//1、不展示是剑鱼链接逻辑:href为剑鱼链接的;(包含 需要登录的源网站)
+		//2、数据生效时间:2024.12.3号;(2024.12.3号前完成脚本及数据更新)--- 张金坤
+		if href != "" && !strings.Contains(href, "jianyu360.cn") {
+			bi.Detail.OriginalShow = true
+		}
 	}
 	//附件  且  附件可用
 	if isValidFile, _ := obj["isValidFile"].(bool); isValidFile && obj["projectinfo"] != nil {

+ 1 - 0
src/jfw/modules/publicapply/src/detail/entity/config.go

@@ -19,6 +19,7 @@ type Config struct {
 		Name string `json:"name"`
 		Code string `json:"code"`
 	} `json:"purchaseInfo"`
+	OriginalTime int64 `json:"originalTime"`
 }
 
 type reqLimit struct {