记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
583aabbf
Commit
583aabbf
authored
Feb 28, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试至信链NFt发行接口
parent
b17d8e33
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
ZxlnftSdkUtil.java
...com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
+4
-1
TestZxlnftSdkUtil.java
.../java/com/liquidnet/service/zxlnft/TestZxlnftSdkUtil.java
+17
-1
pom.xml
liquidnet-bus-service/liquidnet-service-zxlnft/pom.xml
+4
-4
No files found.
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
View file @
583aabbf
...
...
@@ -440,7 +440,7 @@ public class ZxlnftSdkUtil {
req
.
setPlatformPubKey
(
zxlnftConfig
.
getNftPlatformPubKey
());
/**
* 平台
签名信息:sign(epName_creditCode_representativeName_contact_mobile_idcard)
* 平台
方的私钥签名,签名对象和signature对象一致,签名对象是(platformPubKey_applyerAddr_接口名_count_operateId) 接口名=apply_point
*/
String
signMetaData
=
req
.
getPlatformPubKey
()
.
concat
(
"_"
).
concat
(
req
.
getApplyerAddr
())
...
...
@@ -537,6 +537,9 @@ public class ZxlnftSdkUtil {
Nft029PointQueryReq
req
=
Nft029PointQueryReq
.
getNew
();
BeanUtil
.
copy
(
reqDto
,
req
);
//平台地址
req
.
setPlatformAddr
(
zxlnftConfig
.
getNftPlatformAddress
());
Nft029PointQueryResp
resp
=
zxlnftSdkService
.
nft029PointQuery
(
req
);
Nft029PointQueryRespDto
respDto
=
Nft029PointQueryRespDto
.
getNew
();
...
...
liquidnet-bus-service/liquidnet-service-zxlnft/liquidnet-service-zxlnft-impl/src/test/java/com/liquidnet/service/zxlnft/TestZxlnftSdkUtil.java
View file @
583aabbf
...
...
@@ -278,12 +278,15 @@ public class TestZxlnftSdkUtil {
public
void
nft023PointApply
(){
Nft023PointApplyReqDto
reqDto
=
Nft023PointApplyReqDto
.
getNew
();
reqDto
.
setApplyerAddr
(
"ZXa66c8a684727d0f9aaa434044362aa8a18b61bb4"
);
reqDto
.
setCount
(
1
00
l
);
reqDto
.
setCount
(
2
00
l
);
reqDto
.
setOperateId
(
IDGenerator
.
get32UUID
());
ZxlnftResponseDto
<
Nft023PointApplyRespDto
>
resp
=
zxlnftSdkUtil
.
nft023PointApply
(
reqDto
);
System
.
out
.
println
(
resp
.
toJson
());
}
/**
* 查询失败
*/
@Test
public
void
nft024PointApplyResult
(){
Nft024PointApplyResultReqDto
reqDto
=
Nft024PointApplyResultReqDto
.
getNew
();
...
...
@@ -292,6 +295,19 @@ public class TestZxlnftSdkUtil {
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
public
void
nft034Publish
(){
Nft034PublishReqDto
reqDto
=
Nft034PublishReqDto
.
getNew
();
...
...
liquidnet-bus-service/liquidnet-service-zxlnft/pom.xml
View file @
583aabbf
...
...
@@ -20,9 +20,9 @@
<groupId>
com.liquidnet
</groupId>
<artifactId>
liquidnet-common-swagger
</artifactId>
</dependency>
<!-- <dependency>--
>
<!-- <groupId>com.liquidnet</groupId>--
>
<!-- <artifactId>liquidnet-common-web</artifactId>--
>
<!-- </dependency>--
>
<dependency
>
<groupId>
com.liquidnet
</groupId
>
<artifactId>
liquidnet-common-web
</artifactId
>
</dependency
>
</dependencies>
</project>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment