Forráskód Böngészése

feat:用户发布的不展示原文链接

fuwencai 1 éve
szülő
commit
0419c91487

+ 1 - 1
src/jfw/front/swordfish.go

@@ -757,7 +757,7 @@ func ObjData(isPayUser bool, sid, content string, lent int) (t bool, obj map[str
 		//competehref字段来源:
 		//1、竞品采集 href="#" competehref=原网址
 		//2、2021-11-01后新增的爬虫 href=原网址 competehref="#"
-		if util.ObjToString(obj["href"]) == "#" || infoformat == 2 {
+		if util.ObjToString(obj["href"]) == "#" || infoformat == 2 || util.ObjToString(obj["site"]) == "剑鱼信息发布平台" {
 			delete(obj, "href")
 			delete(obj, "competehref")
 		}

+ 1 - 1
src/jfw/modules/app/src/app/front/swordfish.go

@@ -542,7 +542,7 @@ func wxvisitD(sid, userId string, isPayUser bool) (objdata map[string]interface{
 			var infoformat = util.IntAllDef(obj["infoformat"], 1)
 			obj["infoformat"] = infoformat
 			//精准字段(竞争对手的地址) 或  拟建项目
-			if util.ObjToString(obj["href"]) == "#" || infoformat == 2 {
+			if util.ObjToString(obj["href"]) == "#" || infoformat == 2 || util.ObjToString(obj["site"]) == "剑鱼信息发布平台" {
 				delete(obj, "href")
 				delete(obj, "competehref")
 			}

+ 1 - 1
src/jfw/modules/bigmember/src/service/chatShare/obtainDetails.go

@@ -222,7 +222,7 @@ func ObjData(sid, content string, isPayUser bool) (obj map[string]interface{}) {
 		infoformat := qutil.IntAllDef(obj["infoformat"], 1)
 		obj["infoformat"] = infoformat
 		//精准字段(竞争对手的地址) 或  拟建项目
-		if qutil.ObjToString(obj["href"]) == "#" || infoformat == 2 {
+		if qutil.ObjToString(obj["href"]) == "#" || infoformat == 2 || qutil.ObjToString(obj["site"]) == "剑鱼信息发布平台" {
 			delete(obj, "href")
 			delete(obj, "competehref")
 		}

+ 1 - 1
src/jfw/modules/publicapply/src/userbase/entity/entity.go

@@ -557,7 +557,7 @@ func GetOriginalTextUrl(biddingId string) (href string) {
 		obj["infoformat"] = infoformat
 		//精准字段(竞争对手的地址) 或  拟建项目不返回原文地址
 		// infoformat: 拟建数据标识
-		if util.ObjToString(obj["href"]) == "#" || infoformat == 2 {
+		if util.ObjToString(obj["href"]) == "#" || infoformat == 2 || util.ObjToString(obj["site"]) == "剑鱼信息发布平台" {
 			delete(obj, "href")
 			delete(obj, "competehref")
 		} else {