| | |
| | | |
| | | import cc.mrbird.febs.dapp.service.DappSystemService; |
| | | import cc.mrbird.febs.rabbit.QueueConstants; |
| | | import com.rabbitmq.client.Channel; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.amqp.core.Message; |
| | | import org.springframework.amqp.rabbit.annotation.RabbitListener; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | |
| | | public void feeDistribute(String data) { |
| | | dappSystemService.feeDistribute(data); |
| | | } |
| | | |
| | | |
| | | |
| | | @RabbitListener(queues = QueueConstants.TFC_INVITE_PERK_QUEEN) |
| | | public void invitePerkMsg(Long id) { |
| | | log.info("消费推荐规则奖励,流水ID:{}", id); |
| | | dappSystemService.invitePerkMsg(id); |
| | | } |
| | | |
| | | @RabbitListener(queues = QueueConstants.TFC_NODE_PERK_QUEEN) |
| | | public void nodePerkMsg(Long id) { |
| | | log.info("消费节点投资,流水ID:{}", id); |
| | | dappSystemService.nodePerkMsg(id); |
| | | } |
| | | |
| | | @RabbitListener(queues = QueueConstants.TFC_NODE_AGAIN) |
| | | public void nodeMsg(Long id) { |
| | | log.info("复投:{}", id); |
| | | dappSystemService.achieveTreeV2(id); |
| | | } |
| | | } |