|
@@ -1,6 +1,7 @@
|
|
package filter
|
|
package filter
|
|
|
|
|
|
import (
|
|
import (
|
|
|
|
+ qu "app.yhyue.com/moapp/jybase/common"
|
|
"fmt"
|
|
"fmt"
|
|
"jy/src/jfw/modules/subscribepay/src/config"
|
|
"jy/src/jfw/modules/subscribepay/src/config"
|
|
"jy/src/jfw/modules/subscribepay/src/util"
|
|
"jy/src/jfw/modules/subscribepay/src/util"
|
|
@@ -13,7 +14,7 @@ import (
|
|
"app.yhyue.com/moapp/jybase/go-xweb/httpsession"
|
|
"app.yhyue.com/moapp/jybase/go-xweb/httpsession"
|
|
)
|
|
)
|
|
|
|
|
|
-//用户合并删除用户检测
|
|
|
|
|
|
+// 用户合并删除用户检测
|
|
type mergeFilter struct {
|
|
type mergeFilter struct {
|
|
W http.ResponseWriter
|
|
W http.ResponseWriter
|
|
R *http.Request
|
|
R *http.Request
|
|
@@ -27,6 +28,11 @@ func (l *mergeFilter) Do() bool {
|
|
if uid == "" {
|
|
if uid == "" {
|
|
return true
|
|
return true
|
|
}
|
|
}
|
|
|
|
+ phone, _ := l.GetSession["phone"].(string)
|
|
|
|
+ //体验用户
|
|
|
|
+ if phone == "" && qu.Int64All(l.GetSession["experience_binding"]) == 1 {
|
|
|
|
+ jy.SetCookie(l.W, l.R, jy.ExperienceSign, "experiencing", fmt.Sprintf(".%s", l.R.Host), 7*60*60)
|
|
|
|
+ }
|
|
if flushSession, _ := l.GetSession["flushSession"].(bool); flushSession {
|
|
if flushSession, _ := l.GetSession["flushSession"].(bool); flushSession {
|
|
jy.CreateUserMerge(util.MQFW, util.Mysql, l.Session, config.Middleground).FlushSession(uid)
|
|
jy.CreateUserMerge(util.MQFW, util.Mysql, l.Session, config.Middleground).FlushSession(uid)
|
|
l.Session.Del("flushSession")
|
|
l.Session.Del("flushSession")
|