|
@@ -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")
|