新版仿ok交易所-后端
1
zj
16 mins ago b28a97e1bf66e3279e78f31ce58122427787ceec
trading-order-admin/src/main/java/com/yami/trading/admin/controller/chat/OtcOnlineChatController.java
@@ -68,11 +68,11 @@
            map.put("type", type);
            String content = message.getContent();
            if ("img".equals(type)) {
                content = awsS3OSSFileService.getUrl(message.getContent());
                content = Constants.IMAGES_HTTP+message.getContent();
            }
            map.put("content", content);
            if(!content.startsWith("http")){
                map.put("url", awsS3OSSFileService.getUrl(content));
                map.put("url", Constants.IMAGES_HTTP+content);
            }else{
                map.put("url", content);
            }
@@ -94,13 +94,13 @@
        String content = request.getParameter("content");
        String orderNo = request.getParameter("order_no");
        if (StringUtils.isNullOrEmpty(partyId)) {
            throw new YamiShopBindException("暂无用户");
            throw new YamiShopBindException("No users available");
        }
        if (StringUtils.isNullOrEmpty(content.trim()) || StringUtils.isNullOrEmpty(type)) {
            throw new YamiShopBindException("请输入内容");
            throw new YamiShopBindException("Please enter content");
        }
        if (StringUtils.isEmptyString(orderNo)) {
            throw new YamiShopBindException("订单号不能未空");
            throw new YamiShopBindException("Order number cannot be empty");
        }
        // 文字内容乱码处理
        content = URLDecoder.decode(content.replaceAll("%(?![0-9a-fA-F]{2})", "%25"), "utf-8");