幸运礼物-mq异步结算-球球消息tip和收益需要实时

This commit is contained in:
khalil
2025-01-10 19:52:35 +08:00
parent a4b9d4a7bd
commit 94d7fc4b3c
2 changed files with 5 additions and 6 deletions

View File

@@ -143,6 +143,11 @@ public class Lucky24GiftSendService {
}
long winGoldNum = afterMultiple * everyoneGoldNum;
userMetaService.updateUserMeta(config, senderUid, partitionId, curTimes, everyoneGoldNum, winGoldNum);
if (winGoldNum > 0L){
settlementService.syncSendReward(config, senderUid, room, gift, winGoldNum, afterMultiple);
}
return recordService.buildRecord(senderUid, sender.getPartitionId(), gift, giftNum, null != room? room.getUid(): null,
receiverUid, drawResult.getPoolId(), null != supplementMultiple || Boolean.TRUE.equals(drawResult.getIsSupplement()),
drawMultiple, afterMultiple, sendGiftTime);

View File

@@ -77,12 +77,6 @@ public class Lucky24MessageService extends BaseService {
logger.info("【处理lucky24 mq】 收礼收益已发放 messId: {} incomeAllot: {}", giftMessage.getMessId(), JSON.toJSONString(receiverIncomeAllot));
if (record.getWinGoldNum() > 0L){
settlementService.syncSendReward(partitionConfig, record.getUid(), room, gift, record.getWinGoldNum(), record.getAfterMultiple());
logger.info("【处理lucky24 mq】 送礼收益已发放 messId: {} senderUid: {} winGoldNum: {} afterMultiple: {}",
giftMessage.getMessId(), record.getUid(), record.getWinGoldNum(), record.getAfterMultiple());
}
// 后面都是异步发消息
if (record.getAfterMultiple() >= config.getWarnMulti()){
long totalGoldNum = giftMessage.getGiftNum() * giftMessage.getGiftGoldPrice();