admin
2019-06-14 1e92eff67b997263ecefa255c63eb6641c47b57f
fanli/src/main/java/com/yeshi/fanli/util/factory/msg/MsgAccountDetailFactory.java
@@ -122,6 +122,23 @@
      return detail;
   }
   // TODO 账号等级
   // 账号等级
   public static MsgAccountDetail createUserRank(Long uid, String orderType, int orderCount, String rankName) {
      if (uid == null || rankName == null)
         return null;
      String msg = String.format(
            "恭喜你,上月<highlight>%s</highlight>订单达到<highlight>%s</highlight>单,已为你升级为<highlight>%s</highlight>用户,将会获得对应的福利和特权。",
            orderType, orderCount + "", rankName);
      MsgAccountDetail detail = new MsgAccountDetail();
      detail.setBeiZhu("无");
      detail.setContent(msg);
      detail.setTitle("账号等级");
      detail.setType(MsgTypeAccountTypeEnum.level);
      detail.setUser(new UserInfo(uid));
      detail.setCreateTime(new Date());
      detail.setRead(false);
      return detail;
   }
}