Browse Source

fix:公告详情查看次数限制

xuemingyang 3 years ago
parent
commit
fcdaf0ac07
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/jfw/front/shorturl.go

+ 3 - 2
src/jfw/front/shorturl.go

@@ -293,6 +293,9 @@ func (s *Short) Article(stype, id string) error {
 					if obj["winner_enttel"] != "" {
 						obj["winner_enttel"] = "无权限"
 					}
+					if obj["subType"] == "拟建" || obj["subType"] == "采购意向" {
+						s.T["canRead"] = false
+					}
 				}
 				//判断时间 //如果是seo页面超过时间访问的进入首页
 				comeinTime := time.Unix(util.Int64All(obj["comeintime"]), 0)
@@ -304,8 +307,6 @@ func (s *Short) Article(stype, id string) error {
 				FieldProcessing(obj, ssOpenid, industry, id, from_userid, userId, stype, isVip || isMember || isEntniche, false)
 
 				s.T["obj"] = obj
-				if obj["subType"] == "拟建" || obj["subType"] == "采购意向" {
-				}
 
 				if obj["projectname"] != nil {
 					s.SetSession("projectname", obj["projectname"])