remove operator login

This commit is contained in:
Sola
2015-12-14 22:48:32 +08:00
parent 0cfe01e4d1
commit 723566c1ee
8 changed files with 33 additions and 85 deletions

View File

@@ -27,11 +27,4 @@ public class Checker {
return s == null ? null : s.getAttribute(Attribute.AUTHORIZED) == c ? s : null;
}
public static WxSession isOperator(HttpServletRequest r) {
String t = r.getParameter("token");
if (t == null || t.isEmpty()) return null;
WxSession s = WechatSession.get(t, false);
return s == null ? null : s.getAttribute(Attribute.OPERATOR) == null ? null : s;
}
}