From 784af16411d97c3e14f81dd4ebf1380c8b9effb0 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 31 七月 2019 10:33:18 +0800 Subject: [PATCH] 智能推荐修改 --- fanli/src/main/java/com/yeshi/fanli/util/factory/msg/UserMsgVOFactory.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 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 90109ab..2f5748f 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 @@ -93,8 +93,15 @@ contentList.add(new ClientTextStyleVO(Constant.getSourceName(msg.getOrderType()), COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("娓犻亾鏉ユ簮", COLOR_TITLE), contentList)); + + String orderId = msg.getOrderId(); + MsgTypeOrderTypeEnum type = msg.getType(); + if (type == MsgTypeOrderTypeEnum.invite || type == MsgTypeOrderTypeEnum.share) { + orderId = orderId.substring(0, orderId.length() - 6); + orderId = orderId + "******"; + } contentList = new ArrayList<>(); - contentList.add(new ClientTextStyleVO(msg.getOrderId(), COLOR_CONTENT)); + contentList.add(new ClientTextStyleVO(orderId, COLOR_CONTENT)); items.add(new CommonMsgItemVO(new ClientTextStyleVO("璁㈠崟鍙�", COLOR_TITLE), contentList, true)); contentList = new ArrayList<>(); -- Gitblit v1.8.0