Beispiel #1
0
  public String reqEmpower() {

    Map session = ActionContext.getContext().getSession();
    Account act = (Account) session.get("account");
    if (act.getLevel() == 0 || (act.getLevel() == null)) {
      msgService.sendMsg(act.getId(), 14, "请求授权");
    }
    load();
    return "success";
  }
Beispiel #2
0
 public void loadSendMsgs() {
   Map session = ActionContext.getContext().getSession();
   Account act = (Account) session.get("account");
   sendMsgs = msgService.getSendMsg(act.getId());
 }
Beispiel #3
0
 public String delMsg() {
   msgService.removeMsg(msgId);
   return "success";
 }