nft stake task logic

This commit is contained in:
lianghuanjie
2024-12-30 12:53:34 +08:00
parent 31a674080d
commit 029289e84c
5 changed files with 102 additions and 5 deletions

View File

@@ -37,5 +37,17 @@ func (c *Cron) Run() {
return
}
stakes, err := c.svcCtx.StakeNftModel.AllStakeNft(c.ctx)
if err != nil {
logx.Errorw("get all stake nft failed", logx.Field("err", err))
return
}
for _, s := range stakes {
if s.State != 1 {
continue
}
}
logx.Debugw("run settle cron task")
}