nft stake task logic
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user