diff --git a/src/main/java/com/dd/admin/business/chat/controller/ChatController.java b/src/main/java/com/dd/admin/business/chat/controller/ChatController.java index 5842149..5112e32 100644 --- a/src/main/java/com/dd/admin/business/chat/controller/ChatController.java +++ b/src/main/java/com/dd/admin/business/chat/controller/ChatController.java @@ -68,9 +68,13 @@ public class ChatController { public ResultBean> authorList(String authorId) { List authorChats = chatService.selectAuthorChatList(authorId); authorChats.stream().forEach(authorChat -> { - authorChat.setIndex(String.valueOf(PinyinUtil.getFirstLetter(authorChat.getIndex().charAt(0)))); - if(authorChat.getCreateTime()!=null){ - authorChat.setLastSendTime(convertToShanghaiTimeZoneTimestamp( authorChat.getCreateTime())); + try { + authorChat.setIndex(String.valueOf(PinyinUtil.getFirstLetter(authorChat.getIndex().charAt(0)))); + if(authorChat.getCreateTime()!=null){ + authorChat.setLastSendTime(convertToShanghaiTimeZoneTimestamp( authorChat.getCreateTime())); + } + }catch (Exception e){ + } }); return ResultBean.success(authorChats); diff --git a/web/src/layout/components/Navbar.vue b/web/src/layout/components/Navbar.vue index 408baa6..7381486 100644 --- a/web/src/layout/components/Navbar.vue +++ b/web/src/layout/components/Navbar.vue @@ -33,9 +33,13 @@ +
+ qq讨论群:149100946     wx:15638206428 +
+ 客服消息