xiaoyong931011
2023-05-08 e94e6721a4aeb8c21e97878239ec3429fc76d1ad
src/main/java/cc/mrbird/febs/rabbit/consumer/AgentConsumer.java
@@ -45,11 +45,11 @@
    @RabbitListener(queues = QueueConstants.AGENT_AUTO_LEVEL_UP)
    public void agentAutoLevelUp(String id) {
        log.info("收到代理自动升级消息:{}", id);
        log.info("收到合伙人自动升级消息:{}", id);
        try {
            agentService.autoUpAgentLevel(Long.parseLong(id));
        } catch (Exception e) {
            log.error("代理自动升级异常", e);
            log.error("合伙人自动升级异常", e);
        }
    }
@@ -84,4 +84,16 @@
        }
    }
    @RabbitListener(queues = QueueConstants.FORCE_VOUCHER_SALE)
    public void forceVoucherSaleConsumer(String price) {
        log.info("收到强制卖出消息,价格:{}",price);
        try {
            memberProfitService.selaHalfVoucher(price);
        } catch (Exception e) {
            log.error("强制卖出异常", e);
            // todo 更新表
        }
    }
}