|
@@ -3,7 +3,6 @@ package filter
|
|
|
import (
|
|
|
. "jy/src/jfw/config"
|
|
|
"jy/src/jfw/jyutil"
|
|
|
- "log"
|
|
|
"net/http"
|
|
|
"regexp"
|
|
|
"time"
|
|
@@ -42,11 +41,8 @@ func (f *Filter) Do(w http.ResponseWriter, r *http.Request) bool {
|
|
|
if getSession["userId"] != nil && getSession["mgoUserId"] == nil && util.Int64All(getSession["positionType"]) == 0 {
|
|
|
session.Set("mgoUserId", getSession["userId"])
|
|
|
}
|
|
|
- log.Println("------base_user_id", getSession["base_user_id"])
|
|
|
- log.Println("------positionId", getSession["positionId"])
|
|
|
if getSession["base_user_id"] != nil && getSession["positionId"] == nil {
|
|
|
identity := Middleground.UserCenter.IdentityByUserId(util.Int64All(getSession["base_user_id"]))
|
|
|
- log.Println("------identity", identity)
|
|
|
if identity != nil {
|
|
|
session.SetMultiple(map[string]interface{}{
|
|
|
"personId": identity.PersonId,
|