From c4957c48499e767280485216ef06f769e3ec7908 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 07 Aug 2023 18:15:38 +0800
Subject: [PATCH] 数据修改
---
src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java | 177 ++++++++++++-----------------------------------------------
1 files changed, 36 insertions(+), 141 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 24331e3..593eb6a 100644
--- a/src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java
+++ b/src/main/java/cc/mrbird/febs/rabbit/consumer/ChainConsumer.java
@@ -23,160 +23,55 @@
@Autowired
private DappSystemService dappSystemService;
-// @RabbitListener(queues = QueueConstants.ACHIEVE_TREE)
-// public void achieveTree(String id) {
-// log.info("收到业绩树消息");
-// dappSystemService.achieveTree(Long.parseLong(id));
-// }
-//
-// /**
-// * 生产者在tfc应用
-// * @param data
-// */
-// @RabbitListener(queues = QueueConstants.TFC_NEW_PRICE)
-// public void tfcNewPrice(String data) {
-//// dappSystemService.tfcNewPrice(data);
-// }
-//
-// /**
-// * @param data
-// */
-// @RabbitListener(queues = QueueConstants.DISTRIB_PROFIT)
-// public void feeDistribute(String data) {
-// dappSystemService.feeDistribute(data);
-// }
-
- /**层级奖励分发消息
- * @param id
- */
-// @RabbitListener(queues = QueueConstants.QUEUE_LEVEL_PROFIT)
-// public void levelProfit(Long id) {
-// log.info("消费层级奖励分发消息:{}", id);
-// dappSystemService.levelProfit(id);
-// }
-
- /**计算是否有人出局分发消息
- * @param id
- */
-// @RabbitListener(queues = QueueConstants.QUEUE_MEMBER_OUT)
-// public void memberOut(Long id) {
-// log.info("消费计算是否有人出局:{}", id);
-// dappSystemService.memberOut(id);
-// }
-
- /**转账拨币
- * @param id
- */
- @RabbitListener(queues = QueueConstants.QUEUE_BNB_TRANSFER)
- public void bnbTransfer(Long id) {
- log.info("消费转账拨币第一步:{}", id);
- dappSystemService.bnbTransfer(id);
- }
-
- /**转账拨币
- * @param id
- */
- @RabbitListener(queues = QueueConstants.QUEUE_BNB_TRANSFER_TEST)
- public void bnbTransferTest(Long id) {
- log.info("消费转账拨币第二步:{}", id);
- dappSystemService.bnbTransferTest(id);
- }
-//
-// /**代理升级
-// * @param id
-// */
-// @RabbitListener(queues = QueueConstants.QUEUE_BNB_AGENT_UP)
-// public void agentUp(Long id) {
-// log.info("代理升级:{}", id);
-// dappSystemService.agentUp(id);
-// }
-
/**
- * 消费---A 入金的消息
- * @param id
+ * speed 支付订单
*/
- @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN)
- public void AntACoinInMsg(Long id) {
- log.info("消费---A 入金的消息:{}", id);
- dappSystemService.AntACoinInMsg(id);
+ @RabbitListener(queues = QueueConstants.QUEUE_SPEED_PAY_ORDER)
+ public void speedPayOrderMsg(Long orderId) {
+ log.info("speedPayOrderMsg:{}", orderId);
+ try {
+ dappSystemService.speedPayOrderMsg(orderId);
+ } catch (Exception e) {
+ log.error("speedPayOrderErr:", e);
+ }
}
/**
- * 消费---A 入金,转入A底池
- * @param id
+ * speed 代理升级
*/
- @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN_A_POOL)
- public void AntACoinAPollInMsg(Long id) {
- log.info("消费---A 入金,转入A底池:{}", id);
- dappSystemService.AntACoinAPollInMsg(id);
+ @RabbitListener(queues = QueueConstants.QUEUE_SPEED_LEVEL_UP_TEAM)
+ public void speedAutoLevelUpTeamMsg(Long memberId) {
+ log.info("speedAutoLevelUpTeamMsg:{}", memberId);
+ try {
+ dappSystemService.speedAutoLevelUpTeamMsg(memberId);
+ } catch (Exception e) {
+ log.error("speedAutoLevelUpTeamErr:", e);
+ }
}
/**
- * 消费---A 入金,转入B底池
- * @param id
+ * speed 代理升级
*/
- @RabbitListener(queues = QueueConstants.QUEUE_ANT_A_CION_IN_B_POOL)
- public void AntACoinBPollInMsg(Long id) {
- log.info("消费---A 入金,转入B底池:{}", id);
- dappSystemService.AntACoinBPollInMsg(id);
+ @RabbitListener(queues = QueueConstants.QUEUE_SPEED_LEVEL_UP)
+ public void speedAutoLevelUpMsg(Long memberId) {
+ log.info("speedAutoLevelUpMsg:{}", memberId);
+ try {
+ dappSystemService.speedAutoLevelUpMsg(memberId);
+ } catch (Exception e) {
+ log.error("speedAutoLevelUpErr:", e);
+ }
}
/**
- * 消费---A 入金,5%节点
- * @param id
+ * speed 直推返利
*/
- @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);
+ @RabbitListener(queues = QueueConstants.QUEUE_SPEED_DIRECT_PERK)
+ public void speedDirectPerkMsg(Long memberId) {
+ log.info("speedDirectPerkMsg:{}", memberId);
+ try {
+ dappSystemService.speedDirectPerkMsg(memberId);
+ } catch (Exception e) {
+ log.error("speedDirectPerkErr:", e);
+ }
}
}
--
Gitblit v1.9.1