| | |
| | | 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() |
| | |
| | | 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); |
| | | } |