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

Commit 93573269 authored by anjiabin's avatar anjiabin

修改nft实名认证

parent 01fc8df9
...@@ -116,9 +116,9 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -116,9 +116,9 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft003RegisterPersonPlatform--->>> response : {} ",response); log.info("nft003RegisterPersonPlatform--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) { // if (StringUtils.isEmpty(response)) {
return null; // return null;
} // }
/** /**
* 构造返回结果 * 构造返回结果
...@@ -488,10 +488,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService ...@@ -488,10 +488,6 @@ public class ZxlnftSdkServiceImpl implements ZxlnftSdkService
} }
log.info("nft014IdentityBindSubmitByTrusted--->>> response : {} ",response); log.info("nft014IdentityBindSubmitByTrusted--->>> response : {} ",response);
if (StringUtils.isEmpty(response)) {
return null;
}
/** /**
* 构造返回结果 * 构造返回结果
*/ */
......
...@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.util; ...@@ -2,6 +2,7 @@ package com.liquidnet.common.third.zxlnft.util;
import com.liquidnet.common.third.zxlnft.biz.ZxlnftBiz; import com.liquidnet.common.third.zxlnft.biz.ZxlnftBiz;
import com.liquidnet.common.third.zxlnft.config.ZxlnftConfig; import com.liquidnet.common.third.zxlnft.config.ZxlnftConfig;
import com.liquidnet.common.third.zxlnft.constant.ZxlErrorEnum;
import com.liquidnet.common.third.zxlnft.dto.*; import com.liquidnet.common.third.zxlnft.dto.*;
import com.liquidnet.common.third.zxlnft.dto.nft.*; import com.liquidnet.common.third.zxlnft.dto.nft.*;
import com.liquidnet.common.third.zxlnft.exception.ZxlNftException; import com.liquidnet.common.third.zxlnft.exception.ZxlNftException;
...@@ -90,6 +91,8 @@ public class ZxlnftSdkUtil { ...@@ -90,6 +91,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
...@@ -316,6 +319,8 @@ public class ZxlnftSdkUtil { ...@@ -316,6 +319,8 @@ public class ZxlnftSdkUtil {
BeanUtil.copy(resp,respDto); BeanUtil.copy(resp,respDto);
}catch(ZxlNftException e){ }catch(ZxlNftException e){
return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage()); return ZxlnftResponseDto.failure(e.getCode()+","+e.getMessage());
}catch(Exception e){
return ZxlnftResponseDto.failure(ZxlErrorEnum.SERVER_INNER_ERROR.getCode(),ZxlErrorEnum.SERVER_INNER_ERROR.getMsg());
} }
return ZxlnftResponseDto.success(respDto); return ZxlnftResponseDto.success(respDto);
} }
......
...@@ -172,7 +172,11 @@ public class ZxinUserCommonBiz { ...@@ -172,7 +172,11 @@ public class ZxinUserCommonBiz {
userIdentification = nft003Resp.getData().getUserIdentification(); userIdentification = nft003Resp.getData().getUserIdentification();
isRealNameAuthSuccess = true; isRealNameAuthSuccess = true;
}else{ }else{
throw new GalaxyNftUserException(nft003Resp.getCode(),nft003Resp.getMessage()); if(nft003Resp.getCode().equals(ZxlErrorEnum.SERVER_INNER_ERROR.getCode())){
throw new ZxlNftException(nft003Resp.getCode(),nft003Resp.getMessage());
}else{
throw new GalaxyNftUserException(nft003Resp.getCode(),nft003Resp.getMessage());
}
} }
//如果实名认证成功,并且该身份证已经开通过数字账户 //如果实名认证成功,并且该身份证已经开通过数字账户
...@@ -291,8 +295,8 @@ public class ZxinUserCommonBiz { ...@@ -291,8 +295,8 @@ public class ZxinUserCommonBiz {
//是否开通数字账户 //是否开通数字账户
boolean isOpenAccount = false; boolean isOpenAccount = false;
//开通失败错误信息 //开通失败错误信息
String resultCode = null; String resultCode = NftAccStatusEnum.StatusAcc.ING.getCode();
String resultMessage = null; String resultMessage = NftAccStatusEnum.StatusAcc.ING.getMsg();
//实名成功+绑定区块链地址成功 //实名成功+绑定区块链地址成功
if(isRealNameAuthSuccess && isBindBlockAddressSuccess){ if(isRealNameAuthSuccess && isBindBlockAddressSuccess){
...@@ -305,8 +309,13 @@ public class ZxinUserCommonBiz { ...@@ -305,8 +309,13 @@ public class ZxinUserCommonBiz {
if(!isOpenAccount){ if(!isOpenAccount){
//实名失败 //实名失败
if(!isRealNameAuthSuccess){ if(!isRealNameAuthSuccess){
resultCode = NftAccStatusEnum.StatusAcc.FAILURE1.getCode(); if(StringUtil.isNotEmpty(bizFailDesc)){
resultMessage = NftAccStatusEnum.StatusAcc.FAILURE1.getMsg(); resultCode = NftAccStatusEnum.StatusAcc.FAILURE1.getCode();
resultMessage = NftAccStatusEnum.StatusAcc.FAILURE1.getMsg();
}else if(StringUtil.isNotEmpty(sysFailDesc)){
resultCode = NftAccStatusEnum.StatusAcc.FAILURE2.getCode();
resultMessage = NftAccStatusEnum.StatusAcc.FAILURE2.getMsg();
}
}else{ }else{
//地址绑定失败 //地址绑定失败
if(!isBindBlockAddressSuccess){ if(!isBindBlockAddressSuccess){
......
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