wangshan 4 месяцев назад
Родитель
Сommit
6645667dc9

+ 1 - 1
src/jfw/filter/phonefilter.go

@@ -61,7 +61,7 @@ func (l *phoneFilter) Do() bool {
 		host = "." + host
 	}
 	if phone == "" && qu.Int64All(l.GetSession["experience_binding"]) == 1 {
-		jy.SetCookie(l.W, l.R, jy.ExperienceSign, "experiencing", host, 24*60*60)
+		jy.SetCookie(l.W, l.R, jy.ExperienceSign, "experiencing", host, 8*60*60)
 		expBinding = true
 	}
 	// 请求过滤

+ 1 - 1
src/jfw/modules/app/src/app/filter/phonefilter.go

@@ -56,7 +56,7 @@ func (l *phoneFilter) Do() bool {
 		host = "." + host
 	}
 	if phone == "" && qu.Int64All(l.GetSession["experience_binding"]) == 1 {
-		jy.SetCookie(l.W, l.R, jy.ExperienceSign, "experiencing", host, 24*60*60)
+		jy.SetCookie(l.W, l.R, jy.ExperienceSign, "experiencing", host, 8*60*60)
 		expBinding = true
 	}
 	// 请求过滤

+ 1 - 1
src/jfw/modules/publicapply/src/filter/cookie.go

@@ -34,7 +34,7 @@ func (ci *CookieInfo) Do(w http.ResponseWriter, req *http.Request) bool {
 	phone, _ := getSession["phone"].(string)
 	log.Println(phone, "--host:", host)
 	if phone == "" && qu.Int64All(getSession["experience_binding"]) == 1 {
-		jy.SetCookie(w, req, jy.ExperienceSign, "experiencing", host, 24*60*60)
+		jy.SetCookie(w, req, jy.ExperienceSign, "experiencing", host, 8*60*60)
 	}
 	return true
 }

+ 1 - 1
src/jfw/modules/subscribepay/src/service/userAccountInfo.go

@@ -803,7 +803,7 @@ func (this *UserAccount) PhoneBind() {
 				host = "." + host
 			}
 			this.Session().Del("experience_binding")
-			jy.SetCookie(this.ResponseWriter, this.Request, jy.ExperienceSign, "clear", host, 10*60)
+			jy.SetCookie(this.ResponseWriter, this.Request, jy.ExperienceSign, "clear", host, 2*60)
 		}
 	}
 	this.ServeJson(NewResult(rData, errMsg))