@@ -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
@@ -24,6 +24,9 @@ func init() {
//
func (m *Myfwent) Addfwent() error {
+ 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 := ""