Browse Source

Merge branch 'dev/v4.9.27_fu' of qmx/jy into feature/v4.9.27

wangshan 1 year ago
parent
commit
04b3c7b884
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/jfw/front/partner.go
  2. 1 1
      src/jfw/modules/app/src/app/front/wx.go

+ 1 - 1
src/jfw/front/partner.go

@@ -34,5 +34,5 @@ func (p *Partner) PartnerInfo(source string) error {
 		jy.SetCookieValue(p.ResponseWriter, jy.ChannelCookieName, source, cacheTimeOut)                      //三天
 		jy.SetCookieValue(p.ResponseWriter, jy.ChannelCookieName, source, cacheTimeOut)                      //三天
 		redis.Put("limitation", fmt.Sprintf("firstVisitTagByWX_%s", p.Session().Id()), source, cacheTimeOut) //登录注册 用户标识
 		redis.Put("limitation", fmt.Sprintf("firstVisitTagByWX_%s", p.Session().Id()), source, cacheTimeOut) //登录注册 用户标识
 	}
 	}
-	return p.Redirect("/jylab/supsearch/index.html?keywords=&selectType=title&searchGroup=1")
+	return p.Redirect("/jylab/supsearch/index.html?keywords=&selectType=title&searchGroup=1&partner=" + source)
 }
 }

+ 1 - 1
src/jfw/modules/app/src/app/front/wx.go

@@ -34,7 +34,7 @@ func (w *WX) Index(pageLabel string) error {
 	if userId, _ := w.GetSession("userId").(string); userId == "" {
 	if userId, _ := w.GetSession("userId").(string); userId == "" {
 		jy.SetCookieValue(w.ResponseWriter, jy.ChannelCookieName, pageLabel, cacheTimeOut)
 		jy.SetCookieValue(w.ResponseWriter, jy.ChannelCookieName, pageLabel, cacheTimeOut)
 		redis.Put("limitation", fmt.Sprintf("firstVisitTagByWX_%s", w.Session().Id()), pageLabel, cacheTimeOut) //app 登录注册 用户标识
 		redis.Put("limitation", fmt.Sprintf("firstVisitTagByWX_%s", w.Session().Id()), pageLabel, cacheTimeOut) //app 登录注册 用户标识
-		return w.Redirect("/jyapp/jylab/mainSearch?from=wx")
+		return w.Redirect("/jyapp/jylab/mainSearch?partner=" + pageLabel)
 	}
 	}
 	//已登录
 	//已登录
 	return w.Redirect("/jy_mobile/tabbar/home?from=wx")
 	return w.Redirect("/jy_mobile/tabbar/home?from=wx")