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

Commit 46395b2b authored by anjiabin's avatar anjiabin

优化nft购买

parent 68b73f7d
...@@ -206,6 +206,7 @@ public class ZxinTradeCommonBiz { ...@@ -206,6 +206,7 @@ public class ZxinTradeCommonBiz {
String nftIdBegin = null; String nftIdBegin = null;
long timeStart = System.currentTimeMillis(); long timeStart = System.currentTimeMillis();
while (StringUtil.isEmpty(nftIdBegin)) { while (StringUtil.isEmpty(nftIdBegin)) {
Thread.sleep(500l);
count++; count++;
ZxlnftResponseDto<Nft035PublishResultRespDto> nft035RespDtoTemp = zxlnftSdkUtil.nft035PublishResult(nft035ReqDto); ZxlnftResponseDto<Nft035PublishResultRespDto> nft035RespDtoTemp = zxlnftSdkUtil.nft035PublishResult(nft035ReqDto);
log.info("=======执行第{}次查询,taskId:{}", count, nft035ReqDto.getTaskId()); log.info("=======执行第{}次查询,taskId:{}", count, nft035ReqDto.getTaskId());
...@@ -403,6 +404,7 @@ public class ZxinTradeCommonBiz { ...@@ -403,6 +404,7 @@ public class ZxinTradeCommonBiz {
int count = 0; int count = 0;
while(nftBuyPayTaskId == null){ while(nftBuyPayTaskId == null){
Thread.sleep(500l);
count++; count++;
log.info("=======执行第{}次查询,taskId:{}",count,nft044ReqDto.getTaskId()); log.info("=======执行第{}次查询,taskId:{}",count,nft044ReqDto.getTaskId());
ZxlnftResponseDto<Nft044BuyResultRespDto> nft044RespDto = zxlnftSdkUtil.nft044BuyResult(nft044ReqDto); ZxlnftResponseDto<Nft044BuyResultRespDto> nft044RespDto = zxlnftSdkUtil.nft044BuyResult(nft044ReqDto);
......
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