软质押增加奖励发放记录
This commit is contained in:
@@ -86,6 +86,11 @@ func (l *GetStakeTaskDetailLogic) GetStakeTaskDetail() (*types.StakeTaskDetail,
|
||||
|
||||
canReceiveTokens *= coefficient
|
||||
|
||||
totalIncomeReward, err := l.svcCtx.StakeRewardModel.CountReward(l.ctx, uid)
|
||||
if err != nil {
|
||||
l.Errorw("count reward failed", logx.Field("err", err), logx.Field("uid", uid))
|
||||
}
|
||||
|
||||
return &types.StakeTaskDetail{
|
||||
StartDate: start.Format(time.DateOnly),
|
||||
EndDate: end.Format(time.DateOnly),
|
||||
@@ -93,5 +98,6 @@ func (l *GetStakeTaskDetailLogic) GetStakeTaskDetail() (*types.StakeTaskDetail,
|
||||
ProduceTokensToday: produceTokensToday,
|
||||
GameBonus: gameBonus,
|
||||
CanReceiveTokens: canReceiveTokens,
|
||||
TotalIncomeTokens: totalIncomeReward,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user