Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mall-server
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
yimu
mall-server
Commits
3f86abba
Commit
3f86abba
authored
Dec 29, 2021
by
wlx@33.cn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正转赠
parent
81981157
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
UserAssetTransferRecordServiceImpl.java
...sset/service/impl/UserAssetTransferRecordServiceImpl.java
+1
-0
UserAssetTransferConsumer.java
...l/server/front/mq/consumer/UserAssetTransferConsumer.java
+1
-1
No files found.
mall-server-front/src/main/java/com/fzm/mall/server/front/asset/service/impl/UserAssetTransferRecordServiceImpl.java
View file @
3f86abba
...
...
@@ -145,6 +145,7 @@ public class UserAssetTransferRecordServiceImpl extends ServiceImpl<UserAssetTra
tranDto
.
setHash
(
hash
);
tranDto
.
setTokenId
(
tokenId
);
tranDto
.
setGoodsCoin
(
goodsCoin
);
tranDto
.
setCoinType
(
TranDto
.
COIN_TYPE_NFT_IN
);
producer
.
sendTTL
(
JSON
.
toJSONString
(
tranDto
),
QueueTTLTypeEnum
.
MALL_USER_ASSET_TRANSFER_TTL
,
5
*
1000
);
}
...
...
mall-server-front/src/main/java/com/fzm/mall/server/front/mq/consumer/UserAssetTransferConsumer.java
View file @
3f86abba
...
...
@@ -176,7 +176,7 @@ public class UserAssetTransferConsumer {
private
String
getHash
(
TranDto
tranDto
)
{
String
hash
;
if
(
tranDto
.
getCoinType
().
equals
(
TranDto
.
COIN_TYPE_NFT_
IN
))
{
if
(
tranDto
.
getCoinType
().
equals
(
TranDto
.
COIN_TYPE_NFT_
OUT
))
{
long
[]
tokenIds
=
new
long
[]{
tranDto
.
getTokenId
()};
long
[]
amounts
=
new
long
[]{
tranDto
.
getAmount
().
longValue
()};
hash
=
chainUtil
.
evmExec
(
tokenIds
,
amounts
,
tranDto
.
getFromAddr
(),
tranDto
.
getToAddr
());
...
...
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