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

Commit 62aaa2b3 authored by anjiabin's avatar anjiabin

调试至信链NFt购买接口

parent 3e8e99b1
......@@ -10,6 +10,11 @@ package com.liquidnet.common.third.zxlnft.constant;
* @date 2022/2/25 11:16
*/
public class ZxlnftEnum {
/**
* txType 交易类别, 1:发行 2:购买 3:转移 4:设置价格 5:设置状态
*/
/**
* 支付状态
*/
......
......@@ -27,7 +27,7 @@ public class Nft039TradeListRespDto implements Serializable {
private List<TranInfo> transList;
@Data
public class TranInfo{
public static class TranInfo{
/**
* 持有者地址
*/
......
......@@ -27,7 +27,7 @@ public class Nft039TradeListResp implements Serializable {
private List<TranInfo> transList;
@Data
public class TranInfo{
public static class TranInfo{
/**
* 持有者地址
*/
......
......@@ -867,7 +867,7 @@ public class ZxlnftSdkUtil {
return ZxlnftResponseDto.success(respDto);
}
public ZxlnftResponseDto<Nft042TradeAllListRespDto> nft042TradeAllList(Nft041TradeOutListReqDto reqDto){
public ZxlnftResponseDto<Nft042TradeAllListRespDto> nft042TradeAllList(Nft042TradeAllListReqDto reqDto){
/**
* 构造请求
*/
......@@ -1102,6 +1102,17 @@ public class ZxlnftSdkUtil {
Nft054QueryUserAddressBelongToUserReq req = Nft054QueryUserAddressBelongToUserReq.getNew();
BeanUtil.copy(reqDto,req);
//设置平台公钥
req.setPlatformPubKey(zxlnftConfig.getNftPlatformPubKey());
/**
* 接收人的私钥签名,签名对象是(platformPubKey_receiverPubKey_pointReceiverAddr_applyScore_接口名_nftId_offerCount_operateId)
* 接口名:buy_nft
*/
String signMetaData = req.getAddress1()
.concat("_").concat(req.getAddress2());
String signature = zxlnftBiz.createSign(zxlnftConfig.getNftPlatformPriKey(),signMetaData);
req.setPlatformSignData(signature);
Nft054QueryUserAddressBelongToUserRespDto respDto = Nft054QueryUserAddressBelongToUserRespDto.getNew();
try{
Nft054QueryUserAddressBelongToUserResp resp = zxlnftSdkService.nft054QueryUserAddressBelongToUser(req);
......
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