| | |
| | | |
| | | } |
| | | |
| | | public void sendOnlineTransfer(String batchNo) { |
| | | log.info("发送链上转账消息:{}", batchNo); |
| | | public void sendAchieveTreeMsg(Long id) { |
| | | log.info("发送业绩树消息:{}", id); |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | rabbitTemplate.convertAndSend(QueueEnum.ONLINE_TRANSFER.getExchange(), QueueEnum.ONLINE_TRANSFER.getRoute(), batchNo, correlationData); |
| | | rabbitTemplate.convertAndSend(QueueEnum.ACHIEVE_TREE.getExchange(), QueueEnum.ACHIEVE_TREE.getRoute(), id, correlationData); |
| | | } |
| | | |
| | | public void sendDitribProfit(Long id) { |
| | | log.info("发送滑点分配消息:{}", id); |
| | | /** |
| | | * 消费者在tfc应用 |
| | | * |
| | | * @param data |
| | | */ |
| | | public void sendTfcFee(String data) { |
| | | log.info("发送提现手续费消息:{}", data); |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | rabbitTemplate.convertAndSend(QueueEnum.WITHDRAW_FEE.getExchange(), QueueEnum.WITHDRAW_FEE.getRoute(), data, correlationData); |
| | | } |
| | | |
| | | /** |
| | | * 发送手续费分发消息 |
| | | * |
| | | * @param id |
| | | */ |
| | | public void sendFeeDistributeMsg(Long id) { |
| | | log.info("发送手续费分发消息:{}", id); |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | rabbitTemplate.convertAndSend(QueueEnum.DISTRIB_PROFIT.getExchange(), QueueEnum.DISTRIB_PROFIT.getRoute(), id, correlationData); |
| | | } |
| | | |
| | | public void sendUserBuyReward(Long id) { |
| | | log.info("发送用户购买奖励消息:{}", id); |
| | | /** |
| | | * 推荐规则: |
| | | * 无直推奖励,推2个3层,3个6层,4个10层。1%见点奖(有效层级内,每个每1%),共10层,共%10。 |
| | | * @param id 流水ID |
| | | */ |
| | | public void sendInvitePerkMsg(Long id) { |
| | | log.info("发送推荐规则奖励,流水ID:{}", id); |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | rabbitTemplate.convertAndSend(QueueEnum.USER_BUY_REWARD.getExchange(), QueueEnum.USER_BUY_REWARD.getRoute(), id, correlationData); |
| | | rabbitTemplate.convertAndSend(QueueEnum.TFC_INVITE_PERK.getExchange(), QueueEnum.TFC_INVITE_PERK.getRoute(), id, correlationData); |
| | | } |
| | | |
| | | public void sendNftBoxMsg(Long id) { |
| | | log.info("发送NFT盲盒消息:{}", id); |
| | | public void sendNodePerkMsg(Long id) { |
| | | log.info("发送节点投资,流水ID:{}", id); |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | rabbitTemplate.convertAndSend(QueueEnum.NFT_BOX.getExchange(), QueueEnum.NFT_BOX.getRoute(), id, correlationData); |
| | | rabbitTemplate.convertAndSend(QueueEnum.TFC_NODE_PERK.getExchange(), QueueEnum.TFC_NODE_PERK.getRoute(), id, correlationData); |
| | | } |
| | | public void sendNodeMsg(Long id) { |
| | | log.info("发送复投:{}", id); |
| | | CorrelationData correlationData = new CorrelationData(UUID.randomUUID().toString()); |
| | | rabbitTemplate.convertAndSend(QueueEnum.TFC_NODE_AGAIN.getExchange(), QueueEnum.TFC_NODE_AGAIN.getRoute(), id, correlationData); |
| | | } |
| | | } |