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