main
黄海 2 years ago
parent 3a78f91c22
commit 1391154d21

@ -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;

Loading…
Cancel
Save