فهرست منبع

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)
 }