记得上下班打卡 | git大法好,push需谨慎

Commit 5693a044 authored by anjiabin's avatar anjiabin

实现xuper数字账户开通

parent 903134aa
......@@ -101,16 +101,16 @@ public class ZxinUserCommonBiz {
userInfoBo = dataUtils.getGalaxyUserInfo(reqDto.getRouterType(),userId);
if(userInfoBo!=null){
mnemonic = userInfoBo.getMnemonic();
// if(StringUtil.isNotEmpty(userInfoBo.getBlockChainAddress())){
// try{
// //同步用户数字账户开通信息
// boolean isOpenAccount = syncOpenAccount(reqDto,respDto.getBlockChainAddress(),bizFailDesc,sysFailDesc,true,true);
// log.info("用户 {} 数字账户开通结果:{}",reqDto.getUserId(),isOpenAccount);
// }catch(Exception e){
// log.error("同步用户数字账户开通信息异常:"+e.getMessage(),e);
// }
// return ResponseDto.failure("已经开通过数字账户");
// }
if(StringUtil.isNotEmpty(userInfoBo.getBlockChainAddress())){
try{
//同步用户数字账户开通信息
boolean isOpenAccount = syncOpenAccount(reqDto,respDto.getBlockChainAddress(),bizFailDesc,sysFailDesc,true,true);
log.info("用户 {} 数字账户开通结果:{}",reqDto.getUserId(),isOpenAccount);
}catch(Exception e){
log.error("同步用户数字账户开通信息异常:"+e.getMessage(),e);
}
return ResponseDto.failure("已经开通过数字账户");
}
}else{
try{
//生成助记词
......@@ -365,7 +365,7 @@ public class ZxinUserCommonBiz {
reqDto.getUserId(), AdamEnum.BizAcct.NFT_ZX.name(), blockChainAddress, null, null, 1, LocalDateTime.now()
});
sqlsDataA.add(new Object[]{
reqDto.getUserId(), AdamEnum.BizAcct.NFT_XUPER.name(), blockChainAddress, null, null, 1, LocalDateTime.now()
reqDto.getUserId(), AdamEnum.BizAcct.NFT_XUPER.name(), xuperUserRegisterRespDto.getData().getBlockChainAddress(), null, null, 1, LocalDateTime.now()
});
dataUtils.getQueueUtil().sendMsgByRedis(MQConst.GoblinQueue.SQL_STORE.getKey(),
SqlMapping.get("adam_user_busi_acct.add",sqlsDataA)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment