|
@@ -1,10 +1,8 @@
|
|
|
package filter
|
|
|
|
|
|
import (
|
|
|
- qu "app.yhyue.com/moapp/jybase/common"
|
|
|
"app.yhyue.com/moapp/jybase/go-xweb/xweb"
|
|
|
"app.yhyue.com/moapp/jypkg/common/src/qfw/util/jy"
|
|
|
- "log"
|
|
|
"net/http"
|
|
|
"strings"
|
|
|
)
|
|
@@ -27,14 +25,14 @@ func (ci *CookieInfo) Do(w http.ResponseWriter, req *http.Request) bool {
|
|
|
}
|
|
|
}
|
|
|
//体验-绑定-标识
|
|
|
- host := req.Host
|
|
|
- if !strings.HasPrefix(host, ".") {
|
|
|
- host = "." + host
|
|
|
- }
|
|
|
- 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, 8*60*60)
|
|
|
- }
|
|
|
+ //host := req.Host
|
|
|
+ //if !strings.HasPrefix(host, ".") {
|
|
|
+ // host = "." + host
|
|
|
+ //}
|
|
|
+ //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, 8*60*60)
|
|
|
+ //}
|
|
|
return true
|
|
|
}
|