|
@@ -1,6 +1,7 @@
|
|
|
package filter
|
|
|
|
|
|
import (
|
|
|
+ "jfw/jyutil"
|
|
|
//"jfw/jyutil"
|
|
|
"net/http"
|
|
|
"time"
|
|
@@ -17,9 +18,9 @@ type Filter struct {
|
|
|
}
|
|
|
|
|
|
func (f *Filter) Do(w http.ResponseWriter, r *http.Request) bool {
|
|
|
- //session := xweb.RootApp().SessionManager.Session(r, w)
|
|
|
- //getSession := session.GetMultiple()
|
|
|
- /*if !(&logFilter{w, r, session, getSession, make(map[string]interface{})}).Do() {
|
|
|
+ session := xweb.RootApp().SessionManager.Session(r, w)
|
|
|
+ getSession := session.GetMultiple()
|
|
|
+ if !(&logFilter{w, r, session, getSession, make(map[string]interface{})}).Do() {
|
|
|
return false
|
|
|
}
|
|
|
if !(&jyutil.SessionKeep{w, r, session, getSession, make(map[string]interface{})}).Do() {
|
|
@@ -33,6 +34,6 @@ func (f *Filter) Do(w http.ResponseWriter, r *http.Request) bool {
|
|
|
}
|
|
|
if !(&pcFilter{w, r, session, getSession}).Do() {
|
|
|
return false
|
|
|
- }*/
|
|
|
+ }
|
|
|
return true
|
|
|
}
|