|
|
|
@ -14,7 +14,7 @@ public class RepeatIntercetpor implements Interceptor {
|
|
|
|
|
public void intercept(Invocation inv) {
|
|
|
|
|
// 从session中获取user信息
|
|
|
|
|
String user = inv.getController().getSessionAttr("person_id");
|
|
|
|
|
if (user == null) inv.invoke();
|
|
|
|
|
if (user == null) inv.invoke();//未登录,放行,让检查登录的口处理这个问题
|
|
|
|
|
String className = inv.getController().getClass().getName();
|
|
|
|
|
String methodName = inv.getMethodName();
|
|
|
|
|
String key = "repeat." + user + "." + className + "." + methodName;
|
|
|
|
|