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

Commit a00f30af authored by anjiabin's avatar anjiabin

数字账户开通增加耗时日志

parent 39c6ed07
......@@ -64,6 +64,7 @@ public class ZxinUserCommonBiz {
private String adamUrl;
public ResponseDto<GalaxyUserRegisterRespDto> userRegister(GalaxyUserRegisterReqDto reqDto) {
long startTime = System.currentTimeMillis();
String userId = reqDto.getUserId();
String userName = reqDto.getUserName();
String mobile = reqDto.getMobile();
......@@ -259,6 +260,10 @@ public class ZxinUserCommonBiz {
}catch(Exception e){
log.error("同步用户数字账户开通信息异常:"+e.getMessage(),e);
}
long endTime = System.currentTimeMillis();
log.error("开通数字账户userRegister总耗时:{} ",endTime-startTime);
if(StringUtil.isNotEmpty(sysFailDesc)){
return ResponseDto.failure(sysFailDesc);
}
......@@ -279,7 +284,7 @@ public class ZxinUserCommonBiz {
*/
public boolean syncOpenAccount(GalaxyUserRegisterReqDto reqDto,String blockChainAddress,String bizFailDesc,String sysFailDesc,
boolean isRealNameAuthSuccess,boolean isBindBlockAddressSuccess){
long startTime = System.currentTimeMillis();
long openAccSuccessKeyExpireTime = 3600*24*30*3;
long openAccFailKeyExpireTime = 60*5;
......@@ -350,7 +355,8 @@ public class ZxinUserCommonBiz {
dataUtils.getRedisUtil().set(GoblinRedisConst.REDIS_GOBLIN_NFT_CERTMETA_JUNK.concat(reqDto.getIdCardType().concat(reqDto.getIdCard()))
,reqDto.getUserName().concat(",").concat(reqDto.getMobile()),openAccFailKeyExpireTime);
}
long endTime = System.currentTimeMillis();
log.error("同步数字账户syncOpenAccount总耗时:{} ",endTime-startTime);
return isOpenAccount;
}
......
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