update nexa钱包去掉前缀
This commit is contained in:
@@ -1020,7 +1020,12 @@ public class LeaseOrderInfoServiceImpl extends ServiceImpl<LeaseOrderInfoMapper,
|
||||
return errors.toString();
|
||||
}
|
||||
for (OrderMiningInfoDto addressInfo : orderMiningInfoDtoList) {
|
||||
if (!WalletRuleCheckUtils.checkAddress(addressInfo.getCoin(),addressInfo.getWalletAddress())){
|
||||
String coin = addressInfo.getCoin();
|
||||
String walletAddress = addressInfo.getWalletAddress();
|
||||
if(coin.equalsIgnoreCase("NEXA") && walletAddress.startsWith("nexa:")){
|
||||
addressInfo.setWalletAddress(walletAddress.substring(5));
|
||||
}
|
||||
if (!WalletRuleCheckUtils.checkAddress(coin,walletAddress)){
|
||||
addressVerify = addressInfo.getWalletAddress() + "钱包地址格式错误";
|
||||
break;
|
||||
}
|
||||
@@ -1141,6 +1146,7 @@ public class LeaseOrderInfoServiceImpl extends ServiceImpl<LeaseOrderInfoMapper,
|
||||
|
||||
|
||||
//根据钱包 + 币种 + 矿工号 查询 pool 库 pool.kryptex 表 中对应 算力
|
||||
if (list != null && !list.isEmpty()){
|
||||
Map<String, MiningHashrateInfoDto> recentlyHashRateMap = leaseOrderMiningMapper
|
||||
.getRecentlyHashrate(info.getPool(), info.getWalletAddress(), info.getCoin(), list);
|
||||
for (PurchasedMachineDto purchasedMachineDto : list) {
|
||||
@@ -1150,6 +1156,8 @@ public class LeaseOrderInfoServiceImpl extends ServiceImpl<LeaseOrderInfoMapper,
|
||||
purchasedMachineDto.setPower(miningHashrateInfoDto.getPower());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
info.setPurchasedMachines(list);
|
||||
return Result.success(info);
|
||||
|
||||
Reference in New Issue
Block a user