123
This commit is contained in:
@@ -2,7 +2,7 @@ package com.ruoyi.cai.rank;
|
||||
|
||||
import com.ruoyi.cai.constant.RedisHttpConstant;
|
||||
import com.ruoyi.cai.mq.AmqpProducer;
|
||||
import com.ruoyi.cai.mq.handle.dto.RankDTO;
|
||||
import com.ruoyi.cai.mq.handle.dto.RankNotifyDTO;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.redisson.api.RScoredSortedSet;
|
||||
import org.redisson.api.RedissonClient;
|
||||
@@ -81,7 +81,7 @@ public class RankManager {
|
||||
return String.format(LOVE_KEY_FORMAT,TOTAL,TOTAL);
|
||||
}
|
||||
|
||||
public void addRank(RankDTO dto){
|
||||
public void addRank(RankNotifyDTO dto){
|
||||
if(dto.getRankType() == null){
|
||||
return;
|
||||
}
|
||||
@@ -251,7 +251,7 @@ public class RankManager {
|
||||
|
||||
public void sendLoveRankMq(Long userId,Long value,Long traceId){
|
||||
try {
|
||||
RankDTO rank = new RankDTO();
|
||||
RankNotifyDTO rank = new RankNotifyDTO();
|
||||
rank.setUserId(userId);
|
||||
rank.setPrice(value);
|
||||
rank.setTraceId(traceId);
|
||||
@@ -264,7 +264,7 @@ public class RankManager {
|
||||
|
||||
public void sendInviteRankMq(Long userId,Long value,Long traceId){
|
||||
try {
|
||||
RankDTO rank = new RankDTO();
|
||||
RankNotifyDTO rank = new RankNotifyDTO();
|
||||
rank.setUserId(userId);
|
||||
rank.setPrice(value);
|
||||
rank.setTraceId(traceId);
|
||||
|
||||
Reference in New Issue
Block a user