diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/task/TaskListener.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/task/TaskListener.java index f2c4ca09..d9a6bd31 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/task/TaskListener.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/listener/task/TaskListener.java @@ -140,10 +140,9 @@ public class TaskListener implements MessageListener { int result = Integer.parseInt(inc) + 1; eventBody.setTargetValue(10); eventBody.setCompleteValue(Math.min(result, 10)); - boolean updated = updateTaskStatus(eventBody); - if (updated) { - redisService.increment(redisKey, 1); - } + updateTaskStatus(eventBody); + + redisService.increment(redisKey, 1); } // 处理 Spins 上麦任务进度