From 0ec80d1281c95fba831092755bf07124f798ede4 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 18 一月 2019 15:53:37 +0800 Subject: [PATCH] 消息相关修改 --- fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java | 35 +++++++++++++++++++++-------------- 1 files changed, 21 insertions(+), 14 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java index 77f7fb0..da40bee 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java @@ -76,9 +76,10 @@ items.add(new CommonMsgItemVO(new ClientTextStyleVO("閭�璇峰閲�", "#888888"), contentList)); contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu(), "#000000")); + contentList.add( + new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu(), "#000000")); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", "#888888"), contentList)); - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", "璁㈠崟娑堟伅", + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_order.png", "璁㈠崟娑堟伅", msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } @@ -140,9 +141,10 @@ } contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu(), COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu(), + COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", "#888888"), contentList)); - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", "鎻愮幇", + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_extract.png", "鎻愮幇", msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } else if (msg.getMsgType() == MsgTypeMoneyTypeEnum.extractValid) { // 鏀粯瀹濋獙璇� @@ -165,10 +167,11 @@ items.add(new CommonMsgItemVO(new ClientTextStyleVO("鐘舵�佽鏄�", "#888888"), contentList)); contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu(), COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu(), + COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", "#888888"), contentList)); - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", "鎻愮幇璐﹀彿楠岃瘉", + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_extract.png", "鎻愮幇璐﹀彿楠岃瘉", msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } else if (msg.getMsgType() == MsgTypeMoneyTypeEnum.fanli) { // 杩斿埄鍒拌处 @@ -192,10 +195,11 @@ items.add(new CommonMsgItemVO(new ClientTextStyleVO("璐﹀彿浣欓", COLOR_TITLE), contentList)); contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu(), COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu(), + COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", COLOR_TITLE), contentList)); - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", "杩斿埄鍒拌处", + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_fanli.png", "杩斿埄鍒拌处", msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } else if (msg.getMsgType() == MsgTypeMoneyTypeEnum.invite || msg.getMsgType() == MsgTypeMoneyTypeEnum.share) { @@ -222,7 +226,8 @@ items.add(new CommonMsgItemVO(new ClientTextStyleVO("璐﹀彿浣欓", COLOR_TITLE), contentList)); contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu(), COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu(), + COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", COLOR_TITLE), contentList)); Calendar ca = Calendar.getInstance(); @@ -230,7 +235,7 @@ ca.add(Calendar.MONTH, -1); String date = ca.get(Calendar.YEAR) + "骞�" + (ca.get(Calendar.MONTH) + 1) + "鏈�"; - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_share_money.png", date + msg.getMsgType().getDesc(), msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } @@ -277,9 +282,10 @@ items.add(new CommonMsgItemVO(new ClientTextStyleVO("鐘舵��", COLOR_TITLE), contentList)); contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu() + "", COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu() + "", + COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", COLOR_TITLE), contentList)); - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", msg.getType().getDesc(), + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_account.png", msg.getType().getDesc(), msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } @@ -302,10 +308,11 @@ items.add(new CommonMsgItemVO(new ClientTextStyleVO("璇存槑", COLOR_TITLE), contentList)); contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getBeiZhu() + "", COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(StringUtil.isNullOrEmpty(msg.getBeiZhu()) ? "鏃�" : msg.getBeiZhu(), + COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("澶囨敞", COLOR_TITLE), contentList)); - return new UserMsgVO("http://ec-1255749512.file.myqcloud.com/resource/portrait.png", msg.getMsgType().getDesc(), + return new UserMsgVO("http://img.flqapp.com/resource/msg/icon_msg_invite.png", msg.getMsgType().getDesc(), msg.getUpdateTime() == null ? msg.getCreateTime() : msg.getUpdateTime(), items); } -- Gitblit v1.8.0