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

Commit 583aabbf authored by anjiabin's avatar anjiabin

调试至信链NFt发行接口

parent b17d8e33
...@@ -440,7 +440,7 @@ public class ZxlnftSdkUtil { ...@@ -440,7 +440,7 @@ public class ZxlnftSdkUtil {
req.setPlatformPubKey(zxlnftConfig.getNftPlatformPubKey()); req.setPlatformPubKey(zxlnftConfig.getNftPlatformPubKey());
/** /**
* 平台签名信息:sign(epName_creditCode_representativeName_contact_mobile_idcard) * 平台方的私钥签名,签名对象和signature对象一致,签名对象是(platformPubKey_applyerAddr_接口名_count_operateId) 接口名=apply_point
*/ */
String signMetaData = req.getPlatformPubKey() String signMetaData = req.getPlatformPubKey()
.concat("_").concat(req.getApplyerAddr()) .concat("_").concat(req.getApplyerAddr())
...@@ -537,6 +537,9 @@ public class ZxlnftSdkUtil { ...@@ -537,6 +537,9 @@ public class ZxlnftSdkUtil {
Nft029PointQueryReq req = Nft029PointQueryReq.getNew(); Nft029PointQueryReq req = Nft029PointQueryReq.getNew();
BeanUtil.copy(reqDto,req); BeanUtil.copy(reqDto,req);
//平台地址
req.setPlatformAddr(zxlnftConfig.getNftPlatformAddress());
Nft029PointQueryResp resp = zxlnftSdkService.nft029PointQuery(req); Nft029PointQueryResp resp = zxlnftSdkService.nft029PointQuery(req);
Nft029PointQueryRespDto respDto = Nft029PointQueryRespDto.getNew(); Nft029PointQueryRespDto respDto = Nft029PointQueryRespDto.getNew();
......
...@@ -278,12 +278,15 @@ public class TestZxlnftSdkUtil { ...@@ -278,12 +278,15 @@ public class TestZxlnftSdkUtil {
public void nft023PointApply(){ public void nft023PointApply(){
Nft023PointApplyReqDto reqDto = Nft023PointApplyReqDto.getNew(); Nft023PointApplyReqDto reqDto = Nft023PointApplyReqDto.getNew();
reqDto.setApplyerAddr("ZXa66c8a684727d0f9aaa434044362aa8a18b61bb4"); reqDto.setApplyerAddr("ZXa66c8a684727d0f9aaa434044362aa8a18b61bb4");
reqDto.setCount(100l); reqDto.setCount(200l);
reqDto.setOperateId(IDGenerator.get32UUID()); reqDto.setOperateId(IDGenerator.get32UUID());
ZxlnftResponseDto<Nft023PointApplyRespDto> resp = zxlnftSdkUtil.nft023PointApply(reqDto); ZxlnftResponseDto<Nft023PointApplyRespDto> resp = zxlnftSdkUtil.nft023PointApply(reqDto);
System.out.println(resp.toJson()); System.out.println(resp.toJson());
} }
/**
* 查询失败
*/
@Test @Test
public void nft024PointApplyResult(){ public void nft024PointApplyResult(){
Nft024PointApplyResultReqDto reqDto = Nft024PointApplyResultReqDto.getNew(); Nft024PointApplyResultReqDto reqDto = Nft024PointApplyResultReqDto.getNew();
...@@ -292,6 +295,19 @@ public class TestZxlnftSdkUtil { ...@@ -292,6 +295,19 @@ public class TestZxlnftSdkUtil {
System.out.println(resp.toJson()); System.out.println(resp.toJson());
} }
//25 平台积分转移 api/v1/nft/point/transfer
//26 平台积分转移状态查询 api/v1/nft/point/transfer/result
//27 积分销毁 api/v1/nft/point/destroy
//28 查询积分销毁结果 api/v1/nft/point/destory/resul
@Test
public void nft029PointQuery(){
Nft029PointQueryReqDto reqDto = Nft029PointQueryReqDto.getNew();
reqDto.setAddr("ZXa66c8a684727d0f9aaa434044362aa8a18b61bb4");
ZxlnftResponseDto<Nft029PointQueryRespDto> resp = zxlnftSdkUtil.nft029PointQuery(reqDto);
System.out.println(resp.toJson());
}
@Test @Test
public void nft034Publish(){ public void nft034Publish(){
Nft034PublishReqDto reqDto = Nft034PublishReqDto.getNew(); Nft034PublishReqDto reqDto = Nft034PublishReqDto.getNew();
......
...@@ -20,9 +20,9 @@ ...@@ -20,9 +20,9 @@
<groupId>com.liquidnet</groupId> <groupId>com.liquidnet</groupId>
<artifactId>liquidnet-common-swagger</artifactId> <artifactId>liquidnet-common-swagger</artifactId>
</dependency> </dependency>
<!-- <dependency>--> <dependency>
<!-- <groupId>com.liquidnet</groupId>--> <groupId>com.liquidnet</groupId>
<!-- <artifactId>liquidnet-common-web</artifactId>--> <artifactId>liquidnet-common-web</artifactId>
<!-- </dependency>--> </dependency>
</dependencies> </dependencies>
</project> </project>
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