幸运25-大R和后台赠送

This commit is contained in:
khalil
2025-05-04 19:11:13 +08:00
parent 8a1721706a
commit f3f6f995d8
14 changed files with 558 additions and 445 deletions

View File

@@ -1,7 +1,7 @@
package com.accompany.scheduler.task.luckyBag;
import com.accompany.business.message.Lucky25Message;
import com.accompany.business.service.gift.Lucky25MessageService;
import com.accompany.business.service.gift.Lucky25MqService;
import com.accompany.business.service.lucky.Lucky25RecordService;
import com.accompany.common.redis.RedisKey;
import com.accompany.common.utils.DateTimeUtil;
@@ -37,7 +37,7 @@ public class Lucky25Task {
@Autowired
private JedisService jedisService;
@Autowired
private Lucky25MessageService messageService;
private Lucky25MqService mqService;
/**
* 重新消费队列的消息
@@ -58,7 +58,7 @@ public class Lucky25Task {
String val = entry.getValue();
Lucky25Message giftMessage = JSON.parseObject(val, Lucky25Message.class);
if (curTime - giftMessage.getCreateTime() > gapTime) {
messageService.handleGiftMessage(giftMessage);
mqService.handleMq(giftMessage);
}
} catch (Exception e) {
log.error("retryLucky25Queue error", e);