aslan 幸运礼物任务 改成每日任务

This commit is contained in:
tianfeng 2026-05-22 10:56:39 +08:00
parent e8f75b753f
commit 1931c70552

View File

@ -91,10 +91,12 @@ public class LuckyGiftGiveCmdExe {
userProfileGateway.removeCache(cmd.requiredReqUserId());
// 检查是否未完成任务
Boolean taskStatus = taskService.checkTaskStatus(cmd.getReqUserId(), 8L, null);
String nowed = LocalDateTimeUtils.nowFormat("yyyy-MM-dd");
Boolean taskStatus = taskService.checkTaskStatus(cmd.getReqUserId(), 8L, nowed);
if (taskStatus) {
taskMqMessage.sendTask(TaskApprovalEvent.builder()
.taskId(8)
.day(nowed)
.quantity(cmd.getQuantity())
.userId(cmd.getReqUserId())
.build());