修改mockMQ

This commit is contained in:
zren25
2025-05-14 11:48:22 +08:00
parent 06e15f1df1
commit 602090f87a

View File

@@ -40,8 +40,8 @@ public class TestController {
@ApiOperation(value = "补偿处理消息")
public ResultMsg<Object> mockMq(@RequestBody String message) {
JSONObject messageJson = JSONObject.parseObject(message);
String tag = messageJson.getString("tag");
String topic = messageJson.getString("topic");
String tag = messageJson.getString("tag");
if(StringUtils.isNotEmpty(tag)){
topic = topic+":"+tag;
}