| | |
| | | import com.yami.trading.bean.chat.query.ChatRecordReqModel; |
| | | import com.yami.trading.bean.chat.query.ChatRecordRespModel; |
| | | import com.yami.trading.bean.model.User; |
| | | import com.yami.trading.common.constants.Constants; |
| | | import com.yami.trading.common.domain.Result; |
| | | import com.yami.trading.common.util.DateUtils; |
| | | import com.yami.trading.common.util.StringUtils; |
| | |
| | | String content =null; |
| | | String contentType = onlinechatMessage.getContentType(); |
| | | if ("img".equals(contentType) && !onlinechatMessage.getContent().startsWith("http")){ |
| | | content=awsS3OSSFileService.getUrl(onlinechatMessage.getContent()); |
| | | content= Constants.IMAGES_HTTP+onlinechatMessage.getContent(); |
| | | } else { |
| | | content=onlinechatMessage.getContent(); |
| | | } |
| | |
| | | private boolean checkUserBlack(String loginPartyId) { |
| | | User user = userService.getOne(new LambdaQueryWrapper<User>().eq(User::getUserId, loginPartyId)); |
| | | if (user == null) { |
| | | log.warn("用户不存在,userId={}", loginPartyId); |
| | | log.warn("User does not exist,userId={}", loginPartyId); |
| | | return false; |
| | | } |
| | | String username = user.getUserName(); |