Commit 5a6b889b by ping.wu

触发锁,为了日志监控状态码不告警,返回成功

parent dff7e16c
...@@ -301,7 +301,8 @@ public class OrderAdapterServiceImpl implements OrderAdapterService { ...@@ -301,7 +301,8 @@ public class OrderAdapterServiceImpl implements OrderAdapterService {
//添加分布式锁,如果没有取得锁直接返回失败;整个方法执行完毕后会删掉该锁 //添加分布式锁,如果没有取得锁直接返回失败;整个方法执行完毕后会删掉该锁
String paySuccessKey = PAY_SUCCESS_KEY + message.getTrans_id(); String paySuccessKey = PAY_SUCCESS_KEY + message.getTrans_id();
if (!LockUtils.lockAfter(redisCache.getRedisTemplate(), paySuccessKey)) { if (!LockUtils.lockAfter(redisCache.getRedisTemplate(), paySuccessKey)) {
return orderAdapter.newSendPayFaileMessage(); //触发锁,为了日志监控状态码不告警,返回成功
return orderAdapter.sendPaySuccessNoticeMessage();
} }
try { try {
ConfirmOrderDto confirmOrderDto = orderAdapter.convent2ConfirmOrderDto(message); ConfirmOrderDto confirmOrderDto = orderAdapter.convent2ConfirmOrderDto(message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment