liuxiaolu 8 years ago
parent
commit
2a32033a12

+ 3 - 0
src/jfw/modules/followent/src/followent/followent.go

@@ -34,6 +34,9 @@ func init() {
 
 func (f *FollowEnt) EntList() error {
 	defer util.Catch()
+	if f.Session().Get("s_m_openid") == nil{
+		return f.Redirect("/swordfish/about")
+	}
 	f.T["followLimit"] = config.Sysconfig["followentlimit"]
 	datas, ok := mongodb.Find("jylab_followent", `{"s_userid":"`+f.GetSession("userId").(string)+`","s_entname":{$ne:""}}`, `{"l_createtime":-1}`, `{"_id":1,"s_entname":1,"s_userid":1,"s_openid":1,"l_createtime":1,"s_id":1,"i_ispush":1}`, false, 0, 10)
 	f.T["flag"] = false

+ 3 - 0
src/jfw/modules/followent/src/followent/myfwent.go

@@ -24,6 +24,9 @@ func init() {
 //
 func (m *Myfwent) Addfwent() error {
 	defer util.Catch()
+	if m.Session().Get("s_m_openid") == nil{
+		return m.Redirect("/swordfish/about")
+	}
 	userId := m.GetSession("userId").(string)
 	openid := m.GetSession("s_m_openid").(string)
 	followId := ""