|
@@ -176,7 +176,7 @@ func (l *Login) Login() error {
|
|
sourceLabel := fx.GetVisitSource(l.Session()) //qutil.InterfaceToStr(l.Session().Get("RSource")) // redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
|
|
sourceLabel := fx.GetVisitSource(l.Session()) //qutil.InterfaceToStr(l.Session().Get("RSource")) // redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
|
|
if sourceLabel == "" && activityCode != "" {
|
|
if sourceLabel == "" && activityCode != "" {
|
|
sourceLabel = activityCode
|
|
sourceLabel = activityCode
|
|
- l.Session().Set("RSource", activityCode)
|
|
|
|
|
|
+ fx.SetVisitSource(l.Session(), activityCode)
|
|
}
|
|
}
|
|
if reqType == "phoneLogin" {
|
|
if reqType == "phoneLogin" {
|
|
phone := l.GetString("phone")
|
|
phone := l.GetString("phone")
|
|
@@ -941,7 +941,7 @@ func (l *Login) WxLogin() {
|
|
"s_rsource": channelCode,
|
|
"s_rsource": channelCode,
|
|
"s_reg_page": l.GetSession("appLoginReferer"), //注册页面
|
|
"s_reg_page": l.GetSession("appLoginReferer"), //注册页面
|
|
}
|
|
}
|
|
- sourceLabel := qutil.InterfaceToStr(l.Session().Get("RSource")) //redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
|
|
|
|
|
|
+ sourceLabel := fx.GetVisitSource(l.Session()) //qutil.InterfaceToStr(l.Session().Get("RSource")) //redis.GetStr("limitation", fmt.Sprintf("firstVisitTagByWX_%s", l.Session().Id()))
|
|
if sourceLabel != "" {
|
|
if sourceLabel != "" {
|
|
newUser["s_rsource"] = sourceLabel
|
|
newUser["s_rsource"] = sourceLabel
|
|
channelCode = sourceLabel
|
|
channelCode = sourceLabel
|