소스 검색

Merge branch 'master' into feature/v4.9.73

yuelujie 8 달 전
부모
커밋
d8913ce757
2개의 변경된 파일18개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/jfw/front/shorturl.go
  2. 12 0
      src/web/templates/frontRouter/pc/page_big_pc/sess/index.html

+ 6 - 0
src/jfw/front/shorturl.go

@@ -188,6 +188,12 @@ func (s *Short) Article(stype, id string) error {
 		if len(sids) == 0 || (len(sids) > 0 && sids[0] == "") {
 			return s.Redirect(getErrPageUrl(bm, DecodeErr), 302)
 		}
+		//2024.11.26 增加新标讯未登录 /article/content 302 到seo/nologin/content
+		if mgoId := sids[0]; stype == "content" && mgoId != "" {
+			if bid := mg.StringTOBsonId(mgoId); bid.Timestamp().Unix() > 1732550400 {
+				return s.Redirect(fmt.Sprintf("/nologin/content/%s.html", id), 302)
+			}
+		}
 		return s.NologinCommon("", stype, id, sids[0], bm)
 	}
 	return s.LoginCommon(sess, stype, id, bm)

+ 12 - 0
src/web/templates/frontRouter/pc/page_big_pc/sess/index.html

@@ -56,6 +56,18 @@
         .in-bi .page-container {
           padding-top: 0;
         }
+
+        .big-member-page.in-web .content-main {
+            max-width: 960px;
+        }
+        .big-member-page.in-app .content-main {
+            max-width: 980px;
+        }
+        .big-member-page.in-app .recommend-opportunities .article-info-list .article-info-item .content-item,
+        .big-member-page.in-web .recommend-opportunities .article-info-list .article-info-item .content-item {
+            max-width: 630px;
+            width: 100%;
+        }
     </style>
 </head>
 <body class="page--docs--index">