| | |
| | | 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"); |