liuxiaolu преди 8 години
родител
ревизия
9f87363762
променени са 1 файла, в които са добавени 6 реда и са изтрити 0 реда
  1. 6 0
      src/jfw/modules/followent/src/followent/followent.go

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

@@ -75,6 +75,9 @@ func (f *FollowEnt) SaveEnt() {
 //企业最新信息
 func (f *FollowEnt) NewInfo(winner, id string) error {
 	defer util.Catch()
+	if f.Session().Get("s_m_openid") == nil{
+		return f.Redirect("/swordfish/about")
+	}
 	userId := f.GetSession("userId").(string) //用户id
 	var follow = "n"
 	s_id := ""
@@ -120,6 +123,9 @@ func (f *FollowEnt) NewInfo(winner, id string) error {
 //取消企业关注
 func (f *FollowEnt) QgFollow() error {
 	defer util.Catch()
+	if f.Session().Get("s_m_openid") == nil{
+		return f.Redirect("/swordfish/about")
+	}
 	status := "n"
 	userId := f.GetSession("userId").(string)
 	id := f.GetString("id")