记得上下班打卡 | 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
b151f020
Commit
b151f020
authored
Apr 08, 2022
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+NFT批量查询交易调用;
parent
807cfcf3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
GoblinGalaxyService.java
...ervice/goblin/service/impl/inner/GoblinGalaxyService.java
+25
-0
No files found.
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/goblin/service/impl/inner/GoblinGalaxyService.java
View file @
b151f020
...
@@ -5,6 +5,8 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
...
@@ -5,6 +5,8 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.CollectionUtil
;
import
com.liquidnet.commons.lang.util.HttpUtil
;
import
com.liquidnet.commons.lang.util.HttpUtil
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyResultBatchQueryReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyResultBatchQueryRespDto
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -105,4 +107,27 @@ public class GoblinGalaxyService {
...
@@ -105,4 +107,27 @@ public class GoblinGalaxyService {
return
null
;
return
null
;
}
}
}
}
/**
* NFT发行、购买结果查询
*
* @param queryReqDto GalaxyNftPublishAndBuyResultBatchQueryReqDto
* @return GalaxyNftPublishAndBuyResultBatchQueryRespDto
*/
public
GalaxyNftPublishAndBuyResultBatchQueryRespDto
checkNftTradeResultBatch
(
GalaxyNftPublishAndBuyResultBatchQueryReqDto
queryReqDto
)
{
String
postUrl
=
serviceGalaxyUrl
+
"/galaxy/nftTrade/nftPublishAndBuyResultBatchQuery"
;
String
postBody
=
JsonUtils
.
toJson
(
queryReqDto
);
try
{
String
postRespStr
=
HttpUtil
.
postRaw
(
postUrl
,
postBody
,
null
);
JsonNode
postRespJNode
=
JsonUtils
.
fromJson
(
postRespStr
,
JsonNode
.
class
),
postRespCode
;
if
(
null
==
postRespJNode
||
null
==
(
postRespCode
=
postRespJNode
.
get
(
"code"
))
||
!
postRespCode
.
asText
().
equals
(
"0"
))
{
log
.
warn
(
"#NFT发行购买结果查询:查询失败[postBody={},postRespStr={}]"
,
postBody
,
postRespStr
);
return
null
;
}
return
JsonUtils
.
OM
().
convertValue
(
postRespJNode
.
get
(
"data"
),
GalaxyNftPublishAndBuyResultBatchQueryRespDto
.
class
);
}
catch
(
Exception
e
)
{
log
.
error
(
"Ex.NFT发行购买结果查询:请求异常[url={},postBody={}],ex:{}"
,
postUrl
,
postBody
,
e
.
getMessage
());
return
null
;
}
}
}
}
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