From 2f5ece4e5b4d3d2be855dd770462fc752b74c44d Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 05 Jun 2023 11:30:01 +0800
Subject: [PATCH] twoCoin项目修改

---
 src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java |   99 +++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 94 insertions(+), 5 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java b/src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java
index 038a434..24331e3 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java
@@ -76,11 +76,11 @@
     /**转账拨币
      * @param id
      */
-//    @RabbitListener(queues = QueueConstants.QUEUE_BNB_TRANSFER_TEST)
-//    public void bnbTransferTest(Long id) {
-//        log.info("消费转账拨币第二步:{}", id);
-//        dappSystemService.bnbTransferTest(id);
-//    }
+    @RabbitListener(queues = QueueConstants.QUEUE_BNB_TRANSFER_TEST)
+    public void bnbTransferTest(Long id) {
+        log.info("消费转账拨币第二步:{}", id);
+        dappSystemService.bnbTransferTest(id);
+    }
 //
 //    /**代理升级
 //     * @param id
@@ -90,4 +90,93 @@
 //        log.info("代理升级:{}", id);
 //        dappSystemService.agentUp(id);
 //    }
+
+    /**
+     * 消费---A 入金的消息
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN)
+    public void AntACoinInMsg(Long id) {
+        log.info("消费---A 入金的消息:{}", id);
+        dappSystemService.AntACoinInMsg(id);
+    }
+
+    /**
+     * 消费---A 入金,转入A底池
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN_A_POOL)
+    public void AntACoinAPollInMsg(Long id) {
+        log.info("消费---A 入金,转入A底池:{}", id);
+        dappSystemService.AntACoinAPollInMsg(id);
+    }
+
+    /**
+     * 消费---A 入金,转入B底池
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN_B_POOL)
+    public void AntACoinBPollInMsg(Long id) {
+        log.info("消费---A 入金,转入B底池:{}", id);
+        dappSystemService.AntACoinBPollInMsg(id);
+    }
+
+    /**
+     * 消费---A 入金,5%节点
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN_NODE)
+    public void antACoinInNodeMsg(Long id) {
+        log.info("消费---A 入金,转入5%节点:{}", id);
+        dappSystemService.antACoinInNodeMsg(id);
+    }
+
+    /**
+     * 消费---A 入金,10%极差奖
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN_LEVEL)
+    public void antACoinInLevelMsg(Long id) {
+        log.info("消费---A 入金,转入10%极差奖:{}", id);
+        dappSystemService.antACoinInLevelMsg(id);
+    }
+
+    /**
+     * 提现
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_OUT)
+    public void antACoinOutMsg(Long id) {
+        log.info("消费---A 提现:{}", id);
+        dappSystemService.antACoinOutMsg(id);
+    }
+
+    /**
+     *  A 代理升级
+     * @param memberId
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_MEMBER_LEVEL)
+    public void antMemberLevelMsg(Long memberId) {
+        log.info("消费---A 代理升级:{}", memberId);
+        dappSystemService.antMemberLevelMsg(memberId);
+    }
+
+    /**
+     *  A k线数据
+     * @param type
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_K_LINE)
+    public void antKLineMsg(int type) {
+        log.info("消费---A k线数据:{}", type);
+        dappSystemService.antKLineMsg(type);
+    }
+
+    /**转账拨币
+     * @param id
+     */
+    @RabbitListener(queues = QueueConstants.QUEUE_ANT_K_LINE_AB)
+    public void antKLineABMsg(Long id) {
+        log.info("消费转账拨币第二步:{}", id);
+        dappSystemService.antKLineABMsg(id);
+    }
 }

--
Gitblit v1.9.1