This commit is contained in:
cc
2024-12-14 21:15:46 +08:00
parent d970f3f177
commit 553b013180

View File

@@ -36,7 +36,7 @@ public class MessageConsumerService implements RocketMQListener<JSONObject> {
// 处理消息
try {
rateLimiter.acquire(); // 请求许可。如果超过速率,则此方法会阻塞
logger.info("消费到消息:{}", jsonObject);
//logger.info("消费到消息:{}", jsonObject);
String body = jsonObject.getString("body");
byte[] decodedBody = Base64.getDecoder().decode(body);
String decodedBodyStr = new String(decodedBody, StandardCharsets.UTF_8);