Browse Source

feat:seo2

wangchuanjin 2 years ago
parent
commit
5c2265d545
1 changed files with 0 additions and 1 deletions
  1. 0 1
      src/jfw/front/shorturl.go

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

@@ -59,7 +59,6 @@ var seoAgentReg = regexp.MustCompile("Baiduspider|360Spider|bingbot|Googlebot")
 
 func (s *Short) Article(stype, id string) error {
 	userId, _ := s.GetSession("userId").(string)
-	log.Println("----", stype, userId, s.UserAgent())
 	if (stype == "content" || stype == "indexcontent") && userId == "" && seoAgentReg.MatchString(s.UserAgent()) {
 		sids := encrypt.CommonDecodeArticle(stype, id)
 		return s.NologinCommon("", stype, id, sids[0])