KKSU
2023-11-24 e9892b2cfb4b33ecb80c033e4074f65a341fc1b3
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,40 @@
        }
    }
    @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 更新表
        }
    }
    @RabbitListener(queues = QueueConstants.QUEUE_FCM_NFT_EXCHANGE)
    public void fcmNFTExchangeMsg(String cnt) {
        log.info("收到FCM实时兑换销毁数量:{}",cnt);
        try {
            memberProfitService.fcmNFTExchangeMsg(cnt);
        } catch (Exception e) {
            log.error("收到FCM实时兑换销毁数量异常", e);
            // todo 更新表
        }
    }
    @RabbitListener(queues = QueueConstants.QUEUE_FCM_ORDER_SELL_INSURE)
    public void fcmOrderSellInsureMsg(Long sellRecordId) {
        log.info("收到卖单用户确认:{}",sellRecordId);
        try {
            memberProfitService.fcmOrderSellInsureMsg(sellRecordId);
        } catch (Exception e) {
            log.error("收到卖单用户确认异常", e);
            // todo 更新表
        }
    }
}