注释二测质押未提取的用户发奖逻辑
This commit is contained in:
@@ -79,18 +79,18 @@ func (l *StakeSettleLogic) StakeSettle() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 二测质押未提取的用户
|
// 二测质押未提取的用户
|
||||||
oldStakeNfts, err := l.svcCtx.OldStakeNftModel.AllStakeNft(l.ctx)
|
//oldStakeNfts, err := l.svcCtx.OldStakeNftModel.AllStakeNft(l.ctx)
|
||||||
if err != nil {
|
//if err != nil {
|
||||||
logx.Errorw("get all stake nft failed", logx.Field("err", err))
|
// logx.Errorw("get all stake nft failed", logx.Field("err", err))
|
||||||
} else {
|
//} else {
|
||||||
for _, s := range oldStakeNfts {
|
// for _, s := range oldStakeNfts {
|
||||||
if utils.IsBigTarot(cast.ToString(s.TokenId)) {
|
// if utils.IsBigTarot(cast.ToString(s.TokenId)) {
|
||||||
uid2tokens[s.UserId] += float64(taskConf.GreatTarot)
|
// uid2tokens[s.UserId] += float64(taskConf.GreatTarot)
|
||||||
} else {
|
// } else {
|
||||||
uid2tokens[s.UserId] += float64(taskConf.LittleTarot)
|
// uid2tokens[s.UserId] += float64(taskConf.LittleTarot)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
awardSeq := cast.ToInt(time.Now().AddDate(0, 0, -1).Format("20060102"))
|
awardSeq := cast.ToInt(time.Now().AddDate(0, 0, -1).Format("20060102"))
|
||||||
for uid, tokens := range uid2tokens {
|
for uid, tokens := range uid2tokens {
|
||||||
|
|||||||
Reference in New Issue
Block a user