修改方法
This commit is contained in:
@@ -60,14 +60,14 @@ public class IntelligentCustomerMqConsumer implements RocketMQListener<MessageEx
|
|||||||
intelligentCustomerService.fourInOneMqService(fourRequestDTO);
|
intelligentCustomerService.fourInOneMqService(fourRequestDTO);
|
||||||
log.info("FourInOneRequestDTO处理完成,耗时:{}", System.currentTimeMillis() - startTime);
|
log.info("FourInOneRequestDTO处理完成,耗时:{}", System.currentTimeMillis() - startTime);
|
||||||
} catch (JsonProcessingException e) {
|
} catch (JsonProcessingException e) {
|
||||||
log.info(" dcc mq 处理失败:{}", e.getMessage());
|
log.info("intelligentCustomerMqConsumer mq 处理失败:{}", e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("ntelligentCustomerMqConsumer")
|
@PostMapping("intelligentCustomerMqConsumer")
|
||||||
public void onMessage(@RequestBody String message) {
|
public void intelligentCustomerMqConsumer(@RequestBody String message) {
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
try {
|
try {
|
||||||
log.info("intelligentCustomerMqConsumer 当前线程: {}, 线程ID: {}", Thread.currentThread().getName(), Thread.currentThread().getId());
|
log.info("intelligentCustomerMqConsumer 当前线程: {}, 线程ID: {}", Thread.currentThread().getName(), Thread.currentThread().getId());
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ public class IntelligentCustomerServiceImpl implements IntelligentCustomerServic
|
|||||||
@Resource
|
@Resource
|
||||||
private RocketMQTemplate rocketMqTemplate;
|
private RocketMQTemplate rocketMqTemplate;
|
||||||
|
|
||||||
@Value("${rocketmq.producer.corpus.topic}")
|
@Value("${rocketmq.producer.intelligentCustomer.topic}")
|
||||||
private String topic;
|
private String topic;
|
||||||
@Value("${dify.intelligentCustomer.fourInOneToken}")
|
@Value("${dify.intelligentCustomer.fourInOneToken}")
|
||||||
private String fourInOneToken;
|
private String fourInOneToken;
|
||||||
|
|||||||
Reference in New Issue
Block a user