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
0efddbd7
Commit
0efddbd7
authored
Mar 28, 2022
by
33
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新版权状态定时器调整为10分钟一次
parent
6b565204
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
2 deletions
+8
-2
CopyrightTask.java
...n/src/main/java/com/fzm/admin/schedule/CopyrightTask.java
+1
-1
NftTransferRecordVo.java
...in/java/com/fzm/common/entity/vo/NftTransferRecordVo.java
+3
-0
NftServiceImpl.java
...main/java/com/fzm/common/service/impl/NftServiceImpl.java
+2
-1
NftTransferRecordMapper.xml
...mon/src/main/resources/mapper/NftTransferRecordMapper.xml
+2
-0
No files found.
joying-admin/src/main/java/com/fzm/admin/schedule/CopyrightTask.java
View file @
0efddbd7
...
...
@@ -66,7 +66,7 @@ public class CopyrightTask {
/**
* 定时任务更新版权申请状态
*/
@Scheduled
(
cron
=
"0 */
2
* * * ?"
)
@Scheduled
(
cron
=
"0 */
10
* * * ?"
)
public
void
updateCopyrightState
()
throws
InterruptedException
{
// 加锁,防止集群部署时,定时任务在多个节点上执行
RLock
lock
=
redisson
.
getLock
(
"update:copyright:state"
);
...
...
joying-common/src/main/java/com/fzm/common/entity/vo/NftTransferRecordVo.java
View file @
0efddbd7
...
...
@@ -23,6 +23,9 @@ public class NftTransferRecordVo {
@ApiModelProperty
(
"nft哈希"
)
private
String
nftHash
;
@ApiModelProperty
(
"id"
)
private
String
tradeId
;
@ApiModelProperty
(
"类型"
)
private
String
category
;
...
...
joying-common/src/main/java/com/fzm/common/service/impl/NftServiceImpl.java
View file @
0efddbd7
...
...
@@ -155,9 +155,10 @@ public class NftServiceImpl extends ServiceImpl<NftMapper, Nft> implements NftSe
throw
GlobalException
.
newException
(
ResultCode
.
TRANSFER_ERROR
,
"短信验证码校验失败"
);
}
// 转让nft
String
tokenInfo
=
paraChainClient
.
evmGetTokenInfo
(
abi
,
contractAddr
,
nft
.
getTokenId
(),
user
.
getWallet
());
log
.
info
(
"tokenInfo:{}"
,
tokenInfo
);
// 转让nft
String
hash
=
paraChainClient
.
evmTransfer
(
abi
,
contractAddr
,
EvmTokenEnum
.
ERC1155
,
1000000L
,
param
.
getReceiveWallet
(),
nft
.
getTokenId
(),
param
.
getCount
(),
tokenInfo
,
user
.
getWallet
(),
null
,
true
);
if
(
StringUtils
.
isBlank
(
hash
))
{
...
...
joying-common/src/main/resources/mapper/NftTransferRecordMapper.xml
View file @
0efddbd7
...
...
@@ -8,6 +8,7 @@
a.from_address,
a.to_address,
a.nft_hash,
a.transfer_hash AS tradeId,
a.create_date,
b.`name` AS nftName,
c.nickname AS fromNickName,
...
...
@@ -41,6 +42,7 @@
<select
id=
"list"
resultType=
"com.fzm.common.entity.vo.NftTransferDetailVo"
>
SELECT a.id,
a.nft_hash,
a.transfer_hash AS tradeId,
a.create_date,
b.cover,
b.`name` AS nftName,
...
...
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