|
|
@ -2,6 +2,7 @@ package com.conflux.web.controller.nft.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import com.conflux.common.core.domain.AjaxResult; |
|
|
|
import com.conflux.common.core.domain.AjaxResult; |
|
|
|
|
|
|
|
import com.conflux.common.utils.DateUtils; |
|
|
|
import com.conflux.common.utils.StringUtils; |
|
|
|
import com.conflux.common.utils.StringUtils; |
|
|
|
import com.conflux.common.utils.sign.Md5Utils; |
|
|
|
import com.conflux.common.utils.sign.Md5Utils; |
|
|
|
import com.conflux.common.utils.uuid.IdUtils; |
|
|
|
import com.conflux.common.utils.uuid.IdUtils; |
|
|
@ -179,7 +180,7 @@ public class ConfluxServiceImpl implements ConfluxService { |
|
|
|
nftLog.setNftNum(checkArgs.getIds().length); |
|
|
|
nftLog.setNftNum(checkArgs.getIds().length); |
|
|
|
nftLogService.insertNftLog(nftLog); |
|
|
|
nftLogService.insertNftLog(nftLog); |
|
|
|
log.info("上链日志----->:{" + contractConfig.getUnitName() + "}{" + new Date() + "}{" + checkArgs.getIds().length + "}"); |
|
|
|
log.info("上链日志----->:{" + contractConfig.getUnitName() + "}{" + new Date() + "}{" + checkArgs.getIds().length + "}"); |
|
|
|
|
|
|
|
//使用线程铸造
|
|
|
|
executor.execute(() -> { |
|
|
|
executor.execute(() -> { |
|
|
|
boolean isFalg = true; |
|
|
|
boolean isFalg = true; |
|
|
|
while (isFalg) { |
|
|
|
while (isFalg) { |
|
|
@ -247,9 +248,12 @@ public class ConfluxServiceImpl implements ConfluxService { |
|
|
|
} |
|
|
|
} |
|
|
|
List<NftCollection> nftCollections = nftCollectionService.selectNftCollectionListByIds(checkArgs.getIds(), 2); |
|
|
|
List<NftCollection> nftCollections = nftCollectionService.selectNftCollectionListByIds(checkArgs.getIds(), 2); |
|
|
|
if (nftCollections.size() > 0) { |
|
|
|
if (nftCollections.size() > 0) { |
|
|
|
List list = new ArrayList(); |
|
|
|
List<Map> list = new ArrayList(); |
|
|
|
for (NftCollection n : nftCollections) { |
|
|
|
for (NftCollection n : nftCollections) { |
|
|
|
list.add(n.getInformationTableId()); |
|
|
|
Map<String,Object> map=new HashMap<>(); |
|
|
|
|
|
|
|
map.put("informationTableId",n.getInformationTableId()); |
|
|
|
|
|
|
|
map.put("successTime", DateUtils.dateToStr(n.getUpdatedTime())); |
|
|
|
|
|
|
|
list.add(map); |
|
|
|
} |
|
|
|
} |
|
|
|
return AjaxResult.success("铸造成功的id", list); |
|
|
|
return AjaxResult.success("铸造成功的id", list); |
|
|
|
} |
|
|
|
} |
|
|
|