From b6612cd3b5c176ae6ef5243f710aa0bfd5f4eb05 Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 12 Feb 2025 14:52:20 +0800 Subject: [PATCH] feat(mall): 为 AdminRunVipController 中的碳积分系统设置接口添加操作日志 --- src/main/java/cc/mrbird/febs/mall/chain/trcCoin/quartz/ChainTrcListenerJob.java | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/chain/trcCoin/quartz/ChainTrcListenerJob.java b/src/main/java/cc/mrbird/febs/mall/chain/trcCoin/quartz/ChainTrcListenerJob.java index 7c82fab..b05c241 100644 --- a/src/main/java/cc/mrbird/febs/mall/chain/trcCoin/quartz/ChainTrcListenerJob.java +++ b/src/main/java/cc/mrbird/febs/mall/chain/trcCoin/quartz/ChainTrcListenerJob.java @@ -62,7 +62,7 @@ public void chainBlockUpdate() { log.info("TRC20同步"); String sysAddress = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( - RunVipDataDictionaryEnum.CHARGE_SYS_ADDRESS.getType(), RunVipDataDictionaryEnum.CHARGE_SYS_ADDRESS.getCode() + RunVipDataDictionaryEnum.CHARGE_SYS_ADDRESS_TRC.getType(), RunVipDataDictionaryEnum.CHARGE_SYS_ADDRESS_TRC.getCode() ).getValue(); String type = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( RunVipDataDictionaryEnum.CHARGE_TYPE_TRC.getType(), RunVipDataDictionaryEnum.CHARGE_TYPE_TRC.getCode() @@ -141,7 +141,12 @@ MallCharge mallCharge = mallCharges.get(0); mallCharge.setState(YesOrNoEnum.YES.getValue()); mallChargeMapper.updateById(mallCharge); - agentProducer.sendBuyVipSuccessMsg(mallCharge.getId()); + + if(StrUtil.isNotEmpty(mallCharge.getVipCode())){ + agentProducer.sendBuyVipSuccessMsg(mallCharge.getId()); + }else{ + agentProducer.sendChargeSuccessMsg(mallCharge.getId()); + } log.info("扫描到用户ID:{},地址:{},充值金额:{}", mallCharge.getMemberId(), fromAddress, amount); } -- Gitblit v1.9.1