4748495051525354
notNull(getLoginUser(), "登录超时"); } protected void ensureLoginPage() throws SQLException { if (getLoginUser() == null) { throw new LogicException(new RedirectResult("/login.html")); } }
89101112131415
public class BaseAction extends wbbs.web.BaseAction { public void ensureLoginAction() throws SQLException { super.ensureLoginAction(); if (!loginUser.id.equals("admin")) { throw new LogicException(err("请登录")); } }
1516171819202122
} public void ensureLoginPage() throws SQLException { super.ensureLoginPage(); if (!loginUser.id.equals("admin")) { throw new LogicException(new RedirectResult("/login.html")); } }