aslan 幸运礼物任务 改成每日任务
This commit is contained in:
parent
e8f75b753f
commit
1931c70552
@ -91,10 +91,12 @@ public class LuckyGiftGiveCmdExe {
|
|||||||
userProfileGateway.removeCache(cmd.requiredReqUserId());
|
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) {
|
if (taskStatus) {
|
||||||
taskMqMessage.sendTask(TaskApprovalEvent.builder()
|
taskMqMessage.sendTask(TaskApprovalEvent.builder()
|
||||||
.taskId(8)
|
.taskId(8)
|
||||||
|
.day(nowed)
|
||||||
.quantity(cmd.getQuantity())
|
.quantity(cmd.getQuantity())
|
||||||
.userId(cmd.getReqUserId())
|
.userId(cmd.getReqUserId())
|
||||||
.build());
|
.build());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user