admin
2021-08-02 e89de9319d8f771f8e53cb5f876d06465a580c57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.yeshi.buwan.interceptor;
 
public class LoginInterceptor  {
 
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
//
//    @Override
//    public String intercept(ActionInvocation invocation) throws Exception {
//        ActionContext ctx = invocation.getInvocationContext();
//        Map<String, Object> session = ctx.getSession();
//        AdminInfo info = (AdminInfo) session.get("ADMIN_INFO");
//        if (info == null) {
//            return "login";
//        } else {
//            return invocation.invoke();
//        }
//    }
}