| | |
| | | String content = message.getContent(); |
| | | String contentType = message.getContentType(); |
| | | if ("img".equals(contentType) && !message.getContent().startsWith("http")){ |
| | | content=awsS3OSSFileService.getUrl(message.getContent()); |
| | | content=Constants.IMAGES_HTTP+message.getContent(); |
| | | } else { |
| | | content=message.getContent(); |
| | | } |
| | |
| | | } |
| | | |
| | | if(StringUtils.isEmptyString(orderNo)) { |
| | | throw new YamiShopBindException("订单号不能未空"); |
| | | throw new YamiShopBindException("Order number is required"); |
| | | } |
| | | |
| | | otcOnlineChatMessageService.saveSend(SecurityUtils.getCurrentUserId(), type, content, null, orderNo); |
| | |
| | | int unreadMsg = 0; |
| | | String orderNo = request.getParameter("orderNo"); |
| | | if(StringUtils.isEmptyString(orderNo)) { |
| | | throw new YamiShopBindException("订单号不能未空"); |
| | | throw new YamiShopBindException("Order number is required"); |
| | | } |
| | | unreadMsg = otcOnlineChatMessageService.unreadMsg(orderNo, SecurityUtils.getCurrentUserId()); |
| | | resultObject.setData(unreadMsg); |