任务中心领取防抖

This commit is contained in:
2025-01-07 18:03:42 +08:00
parent 3ef912482e
commit 9642d0ad2b

View File

@@ -105,7 +105,7 @@ public class TaskCenterController {
@ApiImplicitParam(name = "taskId", value = "任务id", dataTypeClass = Long.class, paramType = "body"),
@ApiImplicitParam(name = "sourceId", value = "实物(物品Id)", dataTypeClass = Long.class, paramType = "body")
})
@Debounce(interval = 1000, value = "#userId,#record.taskId")
@Debounce(interval = 600000, value = "#userId,#record.taskId")
public Result receiveGoods(@ApiIgnore @RequestAttribute("userId") Long userId,@ApiIgnore TaskCenterRecord record) {
TaskCenter task = taskCenterService.getById(record.getTaskId());
if (Objects.isNull(task)) {