Răsfoiți Sursa

Merge branch 'dev/v4.8.83_dx' of qmx/jy into feature/v4.8.83

duxin 1 an în urmă
părinte
comite
7a66889f64
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  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{})
 	}