wangchuanjin 2 жил өмнө
parent
commit
1e28f54497

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

@@ -62,6 +62,8 @@ func (s *Short) Article(stype, id string) error {
 	if stype == "content" && userId == "" && seoAgentReg.MatchString(s.UserAgent()) {
 		sids := encrypt.CommonDecodeArticle(stype, id)
 		return s.NologinCommon("", stype, id, sids[0])
+	} else if userId == "" {
+		return s.Redirect("/notin/page")
 	}
 	return s.LoginCommon(userId, stype, id)
 }