|
@@ -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, seoAgentReg.MatchString(s.UserAgent()))
|
|
|
if stype == "content" && userId == "" && seoAgentReg.MatchString(s.UserAgent()) {
|
|
|
sids := encrypt.CommonDecodeArticle(stype, id)
|
|
|
return s.NologinCommon("", stype, id, sids[0])
|