예제 #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";
  }
예제 #2
0
 public void loadSendMsgs() {
   Map session = ActionContext.getContext().getSession();
   Account act = (Account) session.get("account");
   sendMsgs = msgService.getSendMsg(act.getId());
 }
예제 #3
0
 public String delMsg() {
   msgService.removeMsg(msgId);
   return "success";
 }