|
@@ -22,9 +22,9 @@ func (l *sessionfilter) Do(w http.ResponseWriter, req *http.Request) bool {
|
|
|
return true
|
|
|
}
|
|
|
session := l.App.SessionManager.Session(req, w)
|
|
|
- session.Set("userId","5f5b395723d21d2fb0e8a318")
|
|
|
+/* session.Set("userId","5f5b395723d21d2fb0e8a318")
|
|
|
session.Set("entUserId","171")
|
|
|
- session.Set("entUserId","3602")
|
|
|
+ session.Set("entUserId","3602")*/
|
|
|
userId, ok := session.Get("userId").(string)
|
|
|
if !ok || userId == "" {
|
|
|
R.ServeJson(w, req, &Result{Error_code_1004, Error_msg_1004, nil})
|