Prechádzať zdrojové kódy

fix:三级页跳转修改

duxin 1 rok pred
rodič
commit
a5c98c8971
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  1. 3 3
      src/jfw/front/shorturl.go

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

@@ -1212,9 +1212,9 @@ func (s *Short) NologinArticle(stype, id string) error {
 		s.Redirect("/notin/page", 302)
 		return nil
 	}
-	//if userId != "" { //已登录用户直接跳转至正常三级页
-	//	return s.LoginCommon(sess, stype, id, mobileReg.MatchString(s.Header("User-Agent"))) //是否是移动端
-	//}
+	if userId != "" { //已登录用户直接跳转至正常三级页
+		return s.LoginCommon(sess, stype, id, mobileReg.MatchString(s.Header("User-Agent"))) //是否是移动端
+	}
 	if detailNeedMosaic == nil {
 		detailNeedMosaic, _ = config.Sysconfig["detailNeedMosaic"].(map[string]interface{})
 	}