上麦时长处理
This commit is contained in:
parent
4b2b9648ad
commit
1cb37230ea
@ -140,10 +140,9 @@ public class TaskListener implements MessageListener {
|
|||||||
int result = Integer.parseInt(inc) + 1;
|
int result = Integer.parseInt(inc) + 1;
|
||||||
eventBody.setTargetValue(10);
|
eventBody.setTargetValue(10);
|
||||||
eventBody.setCompleteValue(Math.min(result, 10));
|
eventBody.setCompleteValue(Math.min(result, 10));
|
||||||
boolean updated = updateTaskStatus(eventBody);
|
updateTaskStatus(eventBody);
|
||||||
if (updated) {
|
|
||||||
redisService.increment(redisKey, 1);
|
redisService.increment(redisKey, 1);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理 Spins 上麦任务进度
|
// 处理 Spins 上麦任务进度
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user