|
@@ -59,6 +59,7 @@ func (l *phoneFilter) Do() bool {
|
|
|
}
|
|
|
return false
|
|
|
}()
|
|
|
+ log.Println("phoneFilter调试日志",l.R.URL.Path,pass)
|
|
|
if pass {
|
|
|
return true
|
|
|
}
|
|
@@ -83,6 +84,7 @@ func (l *phoneFilter) Do() bool {
|
|
|
accountMergeOnline, _ := config.Sysconfig["accountMergeOnline"].(string)
|
|
|
onLineTime, _ := time.ParseInLocation(Date_Full_Layout, accountMergeOnline, time.Local)
|
|
|
if onLineTime.After(reg) { //老用户
|
|
|
+ log.Println("phoneFilter调试日志 onLineTime.After(reg):",onLineTime.After(reg))
|
|
|
dbname, _ := config.Sysconfig["bindPopRedis"].(string)
|
|
|
key := fmt.Sprintf("bindPop_new_%s", userId)
|
|
|
if redis.GetInt(dbname, key) >= qu.IntAll(config.Sysconfig["maxBindPop"]) {
|
|
@@ -97,6 +99,7 @@ func (l *phoneFilter) Do() bool {
|
|
|
}
|
|
|
return false
|
|
|
} else {
|
|
|
+ log.Println("phoneFilter调试日志 isNewUser:",isNewUser)
|
|
|
isNewUser = true
|
|
|
}
|
|
|
//设置cookie 前端跳转
|
|
@@ -106,6 +109,8 @@ func (l *phoneFilter) Do() bool {
|
|
|
return false
|
|
|
}()
|
|
|
var href string
|
|
|
+ log.Println("phoneFilter调试日志 needBindPhone:",needBindPhone)
|
|
|
+
|
|
|
if needBindPhone {
|
|
|
href = "/jyapp/account/phone/bind?mode=mergeBind"
|
|
|
if isNewUser {
|
|
@@ -116,6 +121,7 @@ func (l *phoneFilter) Do() bool {
|
|
|
href = "/jyapp/frontPage/verify/free/index?mode=phoneCheck"
|
|
|
}
|
|
|
}
|
|
|
+ log.Println("phoneFilter调试日志 href:",href)
|
|
|
if href != "" {
|
|
|
http.Redirect(l.W, l.R, href, 302)
|
|
|
return false
|