Commit 3f86abba authored by wlx@33.cn's avatar wlx@33.cn

修正转赠

parent 81981157
......@@ -145,6 +145,7 @@ public class UserAssetTransferRecordServiceImpl extends ServiceImpl<UserAssetTra
tranDto.setHash(hash);
tranDto.setTokenId(tokenId);
tranDto.setGoodsCoin(goodsCoin);
tranDto.setCoinType(TranDto.COIN_TYPE_NFT_IN);
producer.sendTTL(JSON.toJSONString(tranDto), QueueTTLTypeEnum.MALL_USER_ASSET_TRANSFER_TTL, 5 * 1000);
}
......
......@@ -176,7 +176,7 @@ public class UserAssetTransferConsumer {
private String getHash(TranDto tranDto) {
String hash;
if (tranDto.getCoinType().equals(TranDto.COIN_TYPE_NFT_IN)) {
if (tranDto.getCoinType().equals(TranDto.COIN_TYPE_NFT_OUT)) {
long[] tokenIds = new long[]{tranDto.getTokenId()};
long[] amounts = new long[]{tranDto.getAmount().longValue()};
hash = chainUtil.evmExec(tokenIds, amounts, tranDto.getFromAddr(), tranDto.getToAddr());
......
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