public static bool onRequestBefore(bool ifCheck) { if (ifCheck) { if (!MSession.exist("username")) { Native.writeToPage(Native.getErrorMsg("您还未登陆, 请登陆再试!")); return(false); } } return(true); }