瀏覽代碼

feat:cc三级页seo

wangchuanjin 2 年之前
父節點
當前提交
efdc5f6645
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/jfw/front/shorturl.go

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

@@ -58,16 +58,13 @@ var Map_stype = map[string]bool{
 var seoAgentReg = regexp.MustCompile("Baiduspider|360Spider|bingbot|Googlebot")
 
 func (s *Short) Article(stype, id string) error {
-	log.Println("---------------------0")
 	userId, _ := s.GetSession("userId").(string)
 	if stype == "content" && userId == "" && seoAgentReg.MatchString(s.UserAgent()) {
 		sids := encrypt.CommonDecodeArticle(stype, id)
 		return s.NologinCommon("", stype, id, sids[0])
 	} else if userId == "" {
-		log.Println("---------------------1")
 		return s.Redirect("/notin/page")
 	}
-	log.Println("---------------------3")
 	return s.LoginCommon(userId, stype, id)
 }