修改mock
This commit is contained in:
@@ -72,12 +72,8 @@ public class TestController {
|
|||||||
@ApiOperation(value = "补偿处理消息")
|
@ApiOperation(value = "补偿处理消息")
|
||||||
public ResultMsg<Object> mockDccKafka(@RequestBody AicorpusTelephoneDTO message) {
|
public ResultMsg<Object> mockDccKafka(@RequestBody AicorpusTelephoneDTO message) {
|
||||||
|
|
||||||
for(int i=0;i<20;i++){
|
dccKafkaProducer.send("topic_voc_covert_text_log",JSONObject.toJSONString(message));
|
||||||
String sourceId = "2000000"+i;
|
|
||||||
message.setSourceId(sourceId);
|
|
||||||
log.info("发送消息:"+sourceId);
|
|
||||||
dccKafkaProducer.send("topic_voc_covert_text_log",JSONObject.toJSONString(message));
|
|
||||||
}
|
|
||||||
return ResultMsg.ok("ok");
|
return ResultMsg.ok("ok");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user