Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fzm-joying
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
lei
fzm-joying
Commits
b185963f
Commit
b185963f
authored
Jul 21, 2021
by
tangtuo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
纪念版nft相关接口编写
parent
8b818f4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
CommemorateNftServiceImpl.java
...om/fzm/common/service/impl/CommemorateNftServiceImpl.java
+7
-0
No files found.
joying-common/src/main/java/com/fzm/common/service/impl/CommemorateNftServiceImpl.java
View file @
b185963f
...
...
@@ -126,6 +126,13 @@ public class CommemorateNftServiceImpl extends ServiceImpl<CommemorateNftMapper,
semaphore
.
release
();
throw
GlobalException
.
newException
(
ResultCode
.
FAILED
,
"nft领取失败"
);
}
// 确认转让结果
TxResult
txResult
=
paraChainClient
.
cycleConfirmTxWithHash
(
hash
,
true
,
1000
);
if
(!
TxStatusEnum
.
SUCCESS
.
equals
(
txResult
.
getStatus
()))
{
// 领取失败要释放信号量
semaphore
.
release
();
throw
GlobalException
.
newException
(
ResultCode
.
PUBLISH_ERROR
,
txResult
.
getErrMsg
().
getValue
());
}
Nft
nft
=
new
Nft
();
BeanUtil
.
copyProperties
(
commemorateNft
,
nft
,
true
);
// 获取当前用户领取nft的领取顺序编号
...
...
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