幸运礼物-mq异步结算-球球消息tip和收益需要实时
This commit is contained in:
@@ -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);
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user