Browse Source

fix:353遮罩规则修改

duxin 2 years ago
parent
commit
df23040f03
2 changed files with 3 additions and 3 deletions
  1. 1 1
      src/jfw/front/shorturl.go
  2. 2 2
      src/jfw/modules/app/src/app/front/shorturl.go

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

@@ -585,7 +585,7 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
 				}
 				if !node {
 					//打码遮罩
-					s.T["canRead"] = true
+					//s.T["canRead"] = true
 					otherFilter(obj, userId != "")
 				}
 			} else {

+ 2 - 2
src/jfw/modules/app/src/app/front/shorturl.go

@@ -265,9 +265,9 @@ func (s *Short) Article(stype, id string) error {
 					obj["detail"] = strings.ReplaceAll(strings.ReplaceAll(detail3, `<span class="freeView">点击查看</span><span class="freeView">点击查看</span>`, `<span class="freeView">点击查看</span>`), "*********", code)
 				}
 			}
-			if !canRead && (util.ObjToString(obj["subtype"]) == "拟建" || util.ObjToString(obj["subtype"]) == "采购意向") { //登录拟建&采购不展示遮罩 只打码
+			if !canRead && util.ObjToString(obj["subtype"]) == "拟建" { //登录拟建&采购不展示遮罩 只打码
 				otherFilter(obj, userId != "")
-				s.T["canRead"] = true
+				//s.T["canRead"] = true
 			} else if userId == "" {
 				obj = Filter(obj)
 				obj["description"] = fmt.Sprintf("%s,%s。", obj["title"], baseInfo(obj))